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

TransferSpreadsheet to Link an Excel File

Status
Not open for further replies.

scking

Programmer
Jan 8, 2001
1,263
US
I've been attempting to link an Excel file using the line of code following. I get an Error 3027, "Cannot update. Database or object is read-only" and can not determine the cause. The filename is "ANALYST-OUT-DATA (5N1-4-23-14).xls" which I have delimited with quotes because of the space in the filename.

'----------------------------------------------
DoCmd.TransferSpreadsheet TransferType:=acLink, SpreadsheetType:=acSpreadsheetTypeExcel97, TableName:="tmpUOC", Filename:=strFile

Any help explaining the cause and possibly correction of this error would be appreciated.

-------------------------------------
scking@arinc.com
Try to resolve problems independently
Then seek help among peers or experts
But TEST recommended solutions
-------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top