Exporting in code as a spreadsheet

J

Jack

Why doesn't the following work, but stop with a run-time error 3027 'cannot
update. database or object is read only

strPath="C:\Data\GSEXP\"
strFile="21WS.CSV"
strQryNm="qryOutPut"

DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, strQryNm,
strPath & strFile, True
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top