RichardMGreen
Well-known Member
- Joined
- Feb 20, 2006
- Messages
- 2,177
Hi all
I've got the following line of code that's throwing out an error.
conn.DoCmd.Transfertext acImportDelim, , loadtable, keepname, True
I've set up conn as the ADO connection to the database and it's supposed to import a CSV into loadtable using the file keepname.
I'm using Option Explicit to ensure all variables are pre-designed but the acImportDelim is throwing an error as not defined.
Two questions:-
1) Am I doing this correctly?
2) If so, what should acImportDelim be defined as?
I've got the following line of code that's throwing out an error.
conn.DoCmd.Transfertext acImportDelim, , loadtable, keepname, True
I've set up conn as the ADO connection to the database and it's supposed to import a CSV into loadtable using the file keepname.
I'm using Option Explicit to ensure all variables are pre-designed but the acImportDelim is throwing an error as not defined.
Two questions:-
1) Am I doing this correctly?
2) If so, what should acImportDelim be defined as?