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

Read Only Error 1

Status
Not open for further replies.

trudye10

Programmer
Sep 8, 2006
67
Hi Guys, I'm having a problem with an Export. I read in FAQ that if the path+Filename is too long (> 64 chars.) that this will cause error 3027 (which is what I am getting).

I changed the path+filename to 40 bytes and still I'm getting 3027. I checked the database and table properties and neither one is read only.

Any ideas? suggestions? comments? concerns?

Here is my code:
Function TstExport()

On Error GoTo WhyMe
DoCmd.TransferText acExportDelim, , "tblEnroll_Error_Report", "E:\marketing\ResultsControl\PDEnroll.xls", True

Exit Function
WhyMe:
MsgBox ("Error Number: " & Err.Number & " | Error Description: " & Err.Description)

End Function

 
Why TransferText? Surely this should be TransferSpreadsheet? Access can be fussy about unknown extensions.
 
have you checked the permissions on the folder you're trying to export to?

--------------------
Procrastinate Now!
 
You are correct O' wise one. At first I pooh-pooh'd your response, I apoligize for doubting your wisdom it was infact a read-only restriction on the folder.

Thanx to all who responded,
Trudye
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top