Link to home
Create AccountLog in
Avatar of vbnetcoder
vbnetcoder

asked on

the file specifiation does not exsist. --- DoCmd.TransferText

I have the following code:

 DoCmd.TransferText transferType:=acImportDelim, SpecificationName:="ImportWithholdingNoticeData", TableName:="RawData", FileName:=filepath, hasfieldnames:=True

when I run into I get an error that the text file specification does not exists even though it does.  Any ideas what the issue is?
Avatar of Gustav Brock
Gustav Brock
Flag of Denmark image

Try to recreate the specification giving it a simple name like "x".
Avatar of vbnetcoder
vbnetcoder

ASKER

same error occcured
ASKER CERTIFIED SOLUTION
Avatar of vbnetcoder
vbnetcoder

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Sounds like the acImportDelim was not compatible with the Import Specification.  
Perhaps it was made for a different file type or as an export spec.....