Set a tabledef = Nothing

S

soncken

I have 2 databases with about the same tables.
I try to access them through the same linked tables,
by setting the Connect-String to the new Database, and then
using the refreshLink-Method.
But when I reach a table which is not existent in the
other database, the runtimeerror 3011 appears. This error
can only be tamed by the 'on error resume next' pragma.
After the error, I try to evaluate the Err#, but I have no
Idea how to reset the tabledef, so it point to nothing, or
an empty local table.
Help would be apreciated,

stephan.
 

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