Link front end db to back end table, part 2

R

Rod

Alex,

I'm resubmitting this, thinking it may have gotten lost in the posting tree...

I inserted
db.TableDefs.Delete(strInternalTableName) before line
Set tdf = db.CreateTableDef(strInternalTableName)

I receive this vb run-time error 3265: Item not found in this collection.

How can a table be deleted if it doesn't exist?

Rod
 
R

Robert Morley

Just add On Error Resume Next before the delete statement, and On Error Goto
0 (or your error hander) afterwards. That way, if the table exists, it'll
be deleted; if it doesn't, it'll just continue onwards.
 

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