Code doesn't find newly imported data in a table

  • Thread starter Thread starter Bill R via AccessMonster.com
  • Start date Start date
B

Bill R via AccessMonster.com

My code deletes all existing records in a table in my db. Then it imports new
data from a CSV file. However, when subsequent sql code runs, it doesn't seem
to "see" the new data. Do I need to refresh the data? I am using the
following transfertext method:

DoCmd.TransferText acImportDelim, , "DMS_Report", strPath & strFile, True

Once the code finishes I can see the new records in the table, but the code
that immediately follow the transfer can't read the new records.
 
Thanks for your response. I don't know what was happening, but it seems to be
working OK now. Mysterious!

Roger said:
It depends on what the code following this looks like. Can you supply that?
My code deletes all existing records in a table in my db. Then it imports new
data from a CSV file. However, when subsequent sql code runs, it doesn't seem
[quoted text clipped - 5 lines]
Once the code finishes I can see the new records in the table, but the code
that immediately follow the transfer can't read the new records.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top