M
mr3316a
In Access 2007, I am currently using the following code to generate an excel
file from a normal select query and it work fine.
In my code, I am building parts of the statement based on data that is
stored in tables.
"s" = a string that represents the name of the query
"p" = a concatenated string that represents the files Path, files Name,
and files extention
DoCmd.OutputTo acOutputQuery, s, acFormatXLS, p, False
My question is what would the code be if the query needed to have parameters
passed in?
Can anyone help me with this?
file from a normal select query and it work fine.
In my code, I am building parts of the statement based on data that is
stored in tables.
"s" = a string that represents the name of the query
"p" = a concatenated string that represents the files Path, files Name,
and files extention
DoCmd.OutputTo acOutputQuery, s, acFormatXLS, p, False
My question is what would the code be if the query needed to have parameters
passed in?
Can anyone help me with this?