I am programatically doing the following (in MSAccess97):
1. creating a table
2. populating the table by importing from a text file
3. updating a field in the table
For some reason, I am getting the Run-time error '3011' (table cannot be found) within the third step. If I choose the debug option, wait for a second then continue the code execution by hitting play again, the code finishes and succesfully updates the table.
It appears that although the table has been created and populated before the third step the table still appears not to exist. By waiting a second the newly created table becomes visible (or appears to exist) and the code continues as desired.
Can anyone explain what is happening and how to avoid it?
Cheers.
1. creating a table
2. populating the table by importing from a text file
3. updating a field in the table
For some reason, I am getting the Run-time error '3011' (table cannot be found) within the third step. If I choose the debug option, wait for a second then continue the code execution by hitting play again, the code finishes and succesfully updates the table.
It appears that although the table has been created and populated before the third step the table still appears not to exist. By waiting a second the newly created table becomes visible (or appears to exist) and the code continues as desired.
Can anyone explain what is happening and how to avoid it?
Cheers.