J
jrt
I have a button on a form that saves a report based off the data in the form.
A dialog box appears for the user to choose the file type but I can't seem to
force the save dialog box to pop up for the user to choose where to save the
file. Any suggestions? - Thank you
Private Sub CmdFileRpt_Click()
On Error GoTo Err_CmdFileRpt_Click
Dim RptName As String
RptName = "Infection Control Report" & " " & [LstName] & " " & [AutoNum]
DoCmd.OutputTo acReport, "Infection Control Report", acFormat, RptName
Exit_CmdFileRpt_Click:
Exit Sub
Err_CmdFileRpt_Click:
MsgBox Err.Description
Resume Exit_CmdFileRpt_Click
End Sub
A dialog box appears for the user to choose the file type but I can't seem to
force the save dialog box to pop up for the user to choose where to save the
file. Any suggestions? - Thank you
Private Sub CmdFileRpt_Click()
On Error GoTo Err_CmdFileRpt_Click
Dim RptName As String
RptName = "Infection Control Report" & " " & [LstName] & " " & [AutoNum]
DoCmd.OutputTo acReport, "Infection Control Report", acFormat, RptName
Exit_CmdFileRpt_Click:
Exit Sub
Err_CmdFileRpt_Click:
MsgBox Err.Description
Resume Exit_CmdFileRpt_Click
End Sub