Please can someone help me
the issue I am currently having is saving a individual record as a filled out form to pdf
I can get it to print of as a single form and then save to pdf but I would like it to save to pdf in the desired folder automatically. The Code I am using is:
Private Sub Save_Click()
Dim FileName As String
Dim FilePatch As String
FileName = "Order_No_" & Me.Order_Number
Filepath = "C:\Users\Name\Documents\Order System\Receipt" & FileName & ".pdf"
'DoCmd.OutputTo acOutputForm "Receipt", acFormatPDF, Filepath
DoCmd.OutputTo acOutputForm, "Receipt", acFormatPDF, Filepath
DoCmd.Save acForm, "Receipt"
DoCmd.Close acForm, "Receipt"
End Sub
the issue I am currently having is saving a individual record as a filled out form to pdf
I can get it to print of as a single form and then save to pdf but I would like it to save to pdf in the desired folder automatically. The Code I am using is:
Private Sub Save_Click()
Dim FileName As String
Dim FilePatch As String
FileName = "Order_No_" & Me.Order_Number
Filepath = "C:\Users\Name\Documents\Order System\Receipt" & FileName & ".pdf"
'DoCmd.OutputTo acOutputForm "Receipt", acFormatPDF, Filepath
DoCmd.OutputTo acOutputForm, "Receipt", acFormatPDF, Filepath
DoCmd.Save acForm, "Receipt"
DoCmd.Close acForm, "Receipt"
End Sub