Dec 23 2021 07:15 PM
Hello, I want to add a date in YYYYMMDD format to the file name below. I cant seem to get it to work.
the file name should be Pending 20211223.pdf
the below code is not correct (bold part)
Private Sub cmdExport_Click()
DoCmd.OutputTo acOutputReport, Me.Name, acFormatPDF, "C:\Users\Me\OneDrive\Documents\" & "Pending" + DateTime.Now.pdf, True, "", 0
End Sub
thank you
Dec 23 2021 09:40 PM
SolutionDec 24 2021 06:02 AM
Dec 23 2021 09:40 PM
Solution