PSSMargaret
Registered User.
- Local time
- Today, 13:21
- Joined
- Jul 23, 2016
- Messages
- 74
The below code is on a command button and it works fine saving the report to my Documents folder. Can this be tweaked to open the File Save As window and prompt the user for a folder location?
Code:
Dim strReport As String
Dim strWhere As String
Dim strFileName As String
Dim strFolder As String
strReport = "rptInvoice"
strWhere = "[ClientID]=" & Me.ClientID
strFileName = "Invoice " & Me.InvoiceNo & ".pdf"
DoCmd.OpenReport strReport, acViewPreview, , strWhere, acWindowNormal
DoCmd.OutputTo acOutputReport, strReport, acFormatPDF, strFileName, False
DoCmd.Close acReport, strReport