+ Reply to Thread
Results 1 to 1 of 1

Query in Access returns incorrect results

  1. #1
    Registered User
    Join Date
    03-05-2004
    Location
    austin, tx
    Posts
    3

    Query in Access returns incorrect results

    Suing Excel 2007 to automate Access 2007, a query returns incorrect results with the code below. I have VBA code to import a text file, manipulate data and distribute it to various sheets in a workbook. The code with Dims, error traping and commects removed in the main function is:
    Please Login or Register  to view this content.
    The called function is:
    Please Login or Register  to view this content.
    If I create the database and application objects in the function that calls them, I get correct results. The query is a simple select on a table. Before the text import, I get 5 records, after the import is done, I get 3 recs. If we close Excel and run the query in Access, I get 5 recs. Got the latest updates for os (Win 7) and apps (Service Pack 2). Anyone seen anything like this? And what is the "best practice" for coding this?
    Last edited by johnhurgeton; 12-19-2010 at 10:45 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1