G
Guest
I am trying to add date to output file.
My vba module:
File is written as "CouponChannel123099.xls".
Thanks for the help.
patti
My vba module:
Function mcrOutputCouponChannelReport()
On Error GoTo mcrOutputCouponChannelReport_Err
Dim reportdate As Date
DoCmd.OutputTo acOutputReport, "unionqryCheckQueries", "MS-DOSText(*.txt)", "CouponChannelReport" & Format(reportdate, "mmddyyyy") & ".txt", False, "", 0, acExportQualityPrint
mcrOutputCouponChannelReport_Exit:
Exit Function
mcrOutputCouponChannelReport_Err:
MsgBox Error$
Resume mcrOutputCouponChannelReport_Exit
End Function
File is written as "CouponChannel123099.xls".
Thanks for the help.
patti