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!

Transfer Text not working correctly

Status
Not open for further replies.

Phil5673

Programmer
Sep 30, 2002
42
US
I have the following code to transfer a table to a text file. I am getting an error message "Database or object is read only." I am not sure what could be causing this. The database is not read only and the table is not read only. Any feedback is appreciated.

strPath = strFolderName & "\" & strRRDD & CStr(Month(Date)) & CStr(Day(Date)) & CStr(Year(Date)) & "tblTrackingNumbers"
DoCmd.TransferText acExportDelim, "ExporttblTrackingNumbers Export Specification", _
"ExporttblTrackingNumbers", strPath, -1

Phil Edwards
 
Have you sufficient permissions on strFolderName ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Yes. I have already checked that option. I get this message regardless of sufficient privileges.

Phil
 
May I suggest that you try the TransferSpreadsheet method, and see if that is working for you. Sometimes the TransferText method behaves strangely.

Alan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top