TransferSpreadsheet error (1 Viewer)

Bioman

Registered User.
Local time
Today, 13:36
Joined
Feb 28, 2002
Messages
29
Somenone have an idea why this line cause an error???

DoCmd.TransferSpreadsheet (acExport,,"R_export_excel","d:\test.xls",,,)

Thanks!
 

Drevlin

Data Demon
Local time
Today, 13:36
Joined
Jul 16, 2002
Messages
135
get rid of the parenthesis

DoCmd.TransferSpreadsheet cExport,,"R_export_excel","d:\test.xls"

I'm not sure exactly why... but you only use parenthesis when you have an equals sign.

x = FunctionCall( a, b, c)
FunctionCall a, b, c
 

Users who are viewing this thread

Top Bottom