Transfertext problem

jandi

New member
Local time
Today, 21:20
Joined
Jul 28, 2017
Messages
1
I am using this to try to import a text file "DoCmd.TransferText acImportDelim,

But when it is run gives me error 3051 stating cannot open or write to file it is already open exclusively by another user.

I can import this file manually using the spec file with no problem.

I am the only user using this Db and can write to the folder it is contained in.

Any suggestion gratefully received.
 
If you're importing data into Access you need to make sure that not only the destination table is closed, but also that any other db objects (queries/forms/reports/other tables) that are in any way linked to the destination table are also closed.

Try closing everything except the Visual Basic Editor window and running your import in a module.

Or, try importing the data to a new table, and then after that's successful, move the data where you need to be.
 
ensure your source file is closed
 

Users who are viewing this thread

Back
Top Bottom