G
grime
I have a parameter query that collects records within a certain date
range. The user inputs the start date and end date. The dates could
be different for a range longer than 1 day, but 90% of the time, they
are the same date.
I have a TransferSpreadsheet macro set up, which works perfectly other
than the fact that I need the file name to contain the date. For
example, if the parameter dates were the same (20070314 and 20070314
for example), the file would be named "learning 20070314.xls" If the
range was longer than 1 day (20070312 and 20070314), the file would be
named "learning 20070312-20070314"
I know I need to use VBA instead of the macro, but how do I pull the
parameters entered as a string to use?
Thanks in advance,
range. The user inputs the start date and end date. The dates could
be different for a range longer than 1 day, but 90% of the time, they
are the same date.
I have a TransferSpreadsheet macro set up, which works perfectly other
than the fact that I need the file name to contain the date. For
example, if the parameter dates were the same (20070314 and 20070314
for example), the file would be named "learning 20070314.xls" If the
range was longer than 1 day (20070312 and 20070314), the file would be
named "learning 20070312-20070314"
I know I need to use VBA instead of the macro, but how do I pull the
parameters entered as a string to use?
Thanks in advance,