P
Patrick
Hey!
I'm using the transferspreadsheet method to mass export query results from
access 2003. A bit of what I'm doing is:
DoCmd.TransferSpreadsheet acExport, , "qryMROSort", "C:\name.xls"
What I want to do is name the spreadsheet after the passed parameter from
the form to the query etc. If the value passed to the query is "MyName", i'd
like the .xls to be named MyName.xls. Something like:
DoCmd.TransferSpreadsheet acExport, , "qryMROSort",
"C:\"[forms]![switchboard]![MROchoice]".xls"
but it doesn't compile.
I've tried a variety of options - none which work.
Thank you!
I'm using the transferspreadsheet method to mass export query results from
access 2003. A bit of what I'm doing is:
DoCmd.TransferSpreadsheet acExport, , "qryMROSort", "C:\name.xls"
What I want to do is name the spreadsheet after the passed parameter from
the form to the query etc. If the value passed to the query is "MyName", i'd
like the .xls to be named MyName.xls. Something like:
DoCmd.TransferSpreadsheet acExport, , "qryMROSort",
"C:\"[forms]![switchboard]![MROchoice]".xls"
but it doesn't compile.
I've tried a variety of options - none which work.
Thank you!