G
Guest
Hi.
I´m trying to import a fixed textfile instead of ; sep.
I have tried ; separated before, and it works.
I took the same code and changed it a little.
I assumed that I would use acImportFixed, instead of ac ImportDelim.
I mostly used the same code for this, as for when I´m importing ; sep. files.
But it wont work with the fixed one.
I have changed the strFile a little though
strfile = Dir("[Forms]![3ExpQFS]![FS].txt")
Is this ok?
Its not highlighted in the debugger.
I get the message
3001 'Invalid argument'
I dont really know why it wont work.
Is there something wrong with my dll-file used for importing?
I have tried making a new one 4 times, but with the same result.
The highlighted part in the debugger is
DoCmd.TransferText acImportFixed, "ImpSpecE4", "3FSSpecImp", strPath & "\" &
strfile
Anything wrong with this code?
Grateful for any hints or answers.
BR
/Claes
I´m trying to import a fixed textfile instead of ; sep.
I have tried ; separated before, and it works.
I took the same code and changed it a little.
I assumed that I would use acImportFixed, instead of ac ImportDelim.
I mostly used the same code for this, as for when I´m importing ; sep. files.
But it wont work with the fixed one.
I have changed the strFile a little though
strfile = Dir("[Forms]![3ExpQFS]![FS].txt")
Is this ok?
Its not highlighted in the debugger.
I get the message
3001 'Invalid argument'
I dont really know why it wont work.
Is there something wrong with my dll-file used for importing?
I have tried making a new one 4 times, but with the same result.
The highlighted part in the debugger is
DoCmd.TransferText acImportFixed, "ImpSpecE4", "3FSSpecImp", strPath & "\" &
strfile
Anything wrong with this code?
Grateful for any hints or answers.
BR
/Claes