Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Import .csv get runtime error 31519 you can't import this file

Status
Not open for further replies.

kpal29

Technical User
Feb 8, 2003
147
DK
I have an .csv file and am trying to import it into my Access DB. Nothing fancy just a simple import in VB. I can import manually using same spec into same table with no error but when I use the code I get the runtime error. Pls help this is driving me crazy.

my code:
Sub New_Vol_Import()
Dim File As String
File = Forms!FileImport.Directory
DoCmd.TransferText acImportDelim, , "JobProdVol_200608222346", File
End Sub
 
Your code doesn't provide any SpecificationName ?
Does Forms!FileImport.Directory contain a pathname with a legal extension for import ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top