Run time error 'Could not find output table ...

A

Acie

Looking for some advice.

I'm using VB6 with Access 2007.

Basically, I'm creating a table called user1_table within the code, then I
have an insert statement that stores data into this table. After the program
is done, it drops the table. When the program is run again, it creates the
table, and so forth.

Now, this program works fine the first time, and then it gives me the
Run-time error of '-2147217865(80040e37)' at the point of execution the
insert table query. BUt if i tell it to run from there (debug mode), then it
runs fine.

when the error occurs , I check to make sure the table has been created and
it is.

Any ideas?

Acie
 
J

John Spencer

Sounds as if you need a delay in your code to allow time for the table to be
built and recognized. If you were working directly in Access I would say you
need to use a refresh of the table collection and perhaps a DoEvents call to
yield some processor time for clean up before trying to do something with the
newly created table.

John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County
 

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

Top