C
Chris
Hi,
I have a routine which runs numerous queries via the DoCmd.OutputTo command,
so that they can be written to.xls spreadsheets and e-mailed to recipients .
E.g.:
DoCmd.OutputTo acOutputQuery, myQueryName, acFormatXLS, myFileName, False
I want after the query runs to determine if any records qualified. I don't
want to send an empty spreadsheet file via e-mail, and I don't want to open
the query as a recordset first to get a record count because some of these
queries take a long time to run and it would be wasteful of time /
resources.
What approach do you recommend? Can I open the spreadsheet file and get a
row count?
I have a routine which runs numerous queries via the DoCmd.OutputTo command,
so that they can be written to.xls spreadsheets and e-mailed to recipients .
E.g.:
DoCmd.OutputTo acOutputQuery, myQueryName, acFormatXLS, myFileName, False
I want after the query runs to determine if any records qualified. I don't
want to send an empty spreadsheet file via e-mail, and I don't want to open
the query as a recordset first to get a record count because some of these
queries take a long time to run and it would be wasteful of time /
resources.
What approach do you recommend? Can I open the spreadsheet file and get a
row count?