juniormint2009
Programmer
Hi all, after I run some of mu queries from a command button with the DoCmd.openquery command, I use the Do.cmd transferspreadsheet so it goes right to and excel file. I would like to do more though.
Can I have it name the file something unique so the user knows to look for it? Like adding something like +date() to the filename being outputed part?
Also, I have a second query that gives some metrics on the past query like taking a field, grouping it by that field and then using an aggregat function to compute the average number of values on that field.
Can I have that query's results be put into the same excel sheet as the previous but in a seperate sheet so they only have to open 1 excel file and have all the records in 1 sheet and then the second sheet having the metrics (all the group by fields)
Thanks again!!!
Can I have it name the file something unique so the user knows to look for it? Like adding something like +date() to the filename being outputed part?
Also, I have a second query that gives some metrics on the past query like taking a field, grouping it by that field and then using an aggregat function to compute the average number of values on that field.
Can I have that query's results be put into the same excel sheet as the previous but in a seperate sheet so they only have to open 1 excel file and have all the records in 1 sheet and then the second sheet having the metrics (all the group by fields)
Thanks again!!!