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

Help with run-time error 3027

Status
Not open for further replies.

eAlchemist

Technical User
Aug 28, 2003
64
0
0
US
Can someone tell me why I get run-time error 3027: "Cannot update. Databae or object is read-only." when I run this code:
Code:
DoCmd.TransferText acExportDelim, "Transaction Data Export Specification", _
"qry_TransactionTransformation", strPath & "TransactionTransformation", True

but this works fine, and it runs off the same tables:
Code:
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, _
"Hierarchy_Machines", strPath & "Hierarchy_Machines".

When I run the text export manually, it works fine. Any ideas?

Thanks,
Chris
 
Have you edited "qry_TransactionTransformation" without saving it before you try to export it. If so, save it first.
 
I bet if you change you file name to have a .txt extension it will work (stupid security upgrades).
 
lameid was spot on. Thanks for the help!

Chris
 
RobertT687, brings up a good point about adding other extensions to the registry. Something I had forgotten about. I think it is the same registry key for importing, or at least there is one. Sounds like a Group Policy candidate for me. Nice add.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top