I have two databases. The first database contains the switchboard, forms, reports, queries, and all the code. The second database which is linked to the first database contains all the tables.
I want to import data to a table in the second database using "DoCmd.TransferText(acImportDelim, ImportSpecification, TableName, FileName, HASFIELDNAMES)" command. I have created a "ImportSpecification". I know that the import specification is attached to the relevant database. In my case it should be attached to the second database which contains all the tables. But the code is looking for the importspecication file in the first database where the code is running from.
Can some one tell me a method to refrencing a specification file in the second database in the above command.
I want to import data to a table in the second database using "DoCmd.TransferText(acImportDelim, ImportSpecification, TableName, FileName, HASFIELDNAMES)" command. I have created a "ImportSpecification". I know that the import specification is attached to the relevant database. In my case it should be attached to the second database which contains all the tables. But the code is looking for the importspecication file in the first database where the code is running from.
Can some one tell me a method to refrencing a specification file in the second database in the above command.