So i have a parameter query that accepts the value of a date. when i run the query, the input box or criteria pop up appears, asks me for a date, and then the results appear..
is it possible to take whatever i typed in the criteria and use it later when i want to send an email and take that date and use that as my pdf name?
1. i open the parameter query report
2. a popup box appears and asks to me put in a date
3. i put in a formatted date say 8/2011
4. the report opens
5. it takes the 8/2011 i typed and outputs the file using the following command, appends the strReportName and adds the 8/2011 i typed somewhere in the string
strReportName is "Tickets Closed for "
6. when file has been outputted, the name should be the following: Tickets Closed for 8/2011.pdf
is that possible?
thanks!
is it possible to take whatever i typed in the criteria and use it later when i want to send an email and take that date and use that as my pdf name?
1. i open the parameter query report
2. a popup box appears and asks to me put in a date
3. i put in a formatted date say 8/2011
4. the report opens
5. it takes the 8/2011 i typed and outputs the file using the following command, appends the strReportName and adds the 8/2011 i typed somewhere in the string
strReportName is "Tickets Closed for "
Code:
DoCmd.OutputTo acOutputReport, strReportName, acFormatPDF, strDestination & strReportName & ".pdf", False
is that possible?
thanks!
Comment