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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

transfertext problem

Status
Not open for further replies.

antdickens

Programmer
Nov 13, 2001
129
GB

I am trying to import some data from the file i:\chance\stock.asc into the table called datafromchance using the spec saved as ant.

The text file contains comma seperated values

this is my code but it doesn't seem to be working. the error message in get is run time error 2495 the action or method requires a table name or method.


DoCmd.TransferText acImportDelim, ant, datafromchance, "i:\chance\stock.asc", no


i thought i had specified the table name as datafromchance and it does exist??


any ideas??
 
Gotta enclose it in quotes....
DoCmd.TransferText acImportDelim, ant, "datafromchance", "i:\chance\stock.asc", no
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top