Link to home
Start Free TrialLog 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
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.....