Correct Code Syntax - transferspreadsheet

JungleJme

Registered User.
Local time
Today, 09:21
Joined
Jun 18, 2012
Messages
38
Hi,

I'm trying to use the transferspreadsheet command but keeping getting an expression error. Can someone check my syntax and see where it is going wrong?

Code:
DoCmd.TransferSpreadsheet(acImport,,"tbl_temp_sql_data","C:\Users\7092\Documents\Master\Current Work\DB Folders\sqlexec.xls",TRUE,,)

Correct = TransferSpreadsheet(TransferType, SpreadsheetType, TableName, FileName, HasFieldNames, Range, UseOA)

Thanks

J
 
Remove the parentheses and the two trailing commas.
 

Users who are viewing this thread

Back
Top Bottom