I want to save the reports to a folder in "My Documents". Can I push the File button and have it save using the LastName from the form or report as the filename so I don't have to go through 2 dialog boxes
Private Sub File_Click()
On Error GoTo Err_File_Click
Dim stDocName As String
stDocName = "MyForm"
DoCmd.OutputTo acReport, stDocName
Exit_File_Click:
Exit Sub
Err_File_Click:
MsgBox Err.Description
Resume Exit_File_Click
End Sub
Thank you for your help
Private Sub File_Click()
On Error GoTo Err_File_Click
Dim stDocName As String
stDocName = "MyForm"
DoCmd.OutputTo acReport, stDocName
Exit_File_Click:
Exit Sub
Err_File_Click:
MsgBox Err.Description
Resume Exit_File_Click
End Sub
Thank you for your help