I am trying to import a text file using the command docmd.transfertext
this is my code:
DoCmd.TransferText acImportDelim, "IMPORT", _
"AMEX", "volbyclass-amex.txt", -1
my text file is in the same directory as my access database but it doesn't work. it gives me an error that it cannot find the file.
If I put the whole path (ex: c:\...) it works perfectly but I obviously don't want to do that because it won't be portable. what am I missing ?
this is my code:
DoCmd.TransferText acImportDelim, "IMPORT", _
"AMEX", "volbyclass-amex.txt", -1
my text file is in the same directory as my access database but it doesn't work. it gives me an error that it cannot find the file.
If I put the whole path (ex: c:\...) it works perfectly but I obviously don't want to do that because it won't be portable. what am I missing ?