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 gkittelson 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.

joel009

Programmer
Jul 7, 2000
272
US
I am using 2010 in 2007. There is no help that i can find for VBA 2007 on my PC and I am not allowed to get on the internet. My manager allowed me on for this.
using:
Dim strExportPath As String
Dim strImportPath As String

strExportPath = "C:\ProplannerProcessing\ProPlannerStep1\WTAP.csv"


'export rs_selProplannerOutputRecords to .csv file
' DoCmd.TransferText acExportDelim,,"tblProPlannerOutput",
DoCmd.TransferText acExportDelim, "RouteDetailImportExportSpec", "tblProPlannerOutput", strExportPath, True

and get the error #3011 stating that it can't find the object (which I expect it to make since I am using acExportDelim) "WTAP#csv".

Does anyone see what I am doing wrong???
Joel

Joel
 
Bob
I am not, look at my variable, I set it to "strExportPath = "C:\ProplannerProcessing\ProPlannerStep1\WTAP.csv", I don't see a # sign anywhere. That's why I am confused, well there may be other reasons too but I don't want to go into it.

Joel

Joel
 
Figured it out. Access vba does not support .csv files. I exported as a .txt then rename the file with the extension .csv - wah-la

Joel
 
Bob,
I may check that out. Thank you.

Joel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top