Table not yet been added to the Tabledefs collection?

J

Jane

I am using Access 2000.

When I step through the code below, it works without problem; when I run the
code it fails.

The error message tells me that it cannot find the input table 'Header';
however it is imported correctly.

I think that the table 'header' has not yet been added to the tabledefs
collection, but I don't know what to do about it.

Any help would be much appreciated

Jane
*****************************************
Dim db as DAO.database
dim recheader as recordset

set db = currentdb

DoCmd.TransferText acImportFixed, "HDHeader", "Header",
c":\abds\Import\filename", False

set recheader = db.openrecordset("Header")
**********************************************
 

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