G
Guest
Hi all,
I have created a macro to export the results of a query into Excel. The
macro works fine, and exports perfectly well.
However, I would like the file name to auto generate based on the two dates
that are central to the query I have written, namely a date range I use to
pull out all the patients who have their operation cancelled (field name:
"Date of Cancellation") for a specified period. I use a "between" function on
the query to do this.
Is there a way I can title the report "CancOps_xx to yy" where xx and yy are
the two dates entered when the query is run?
Thanks,
David Hawes
I have created a macro to export the results of a query into Excel. The
macro works fine, and exports perfectly well.
However, I would like the file name to auto generate based on the two dates
that are central to the query I have written, namely a date range I use to
pull out all the patients who have their operation cancelled (field name:
"Date of Cancellation") for a specified period. I use a "between" function on
the query to do this.
Is there a way I can title the report "CancOps_xx to yy" where xx and yy are
the two dates entered when the query is run?
Thanks,
David Hawes