L
Londa Sue
I created a combo box to allow for selection of an ID to drive the generation
of a report. The code is as follows:
Private Sub cmdOK_Click()
DoCmd.OpenQuery "qry_mainreport", acViewNormal, acEdit
DoCmd.OpenReport "41 Internal Project Audit Report", , , "IPAID= '" &
Me.cboIPAReport & "'"
DoCmd.Close acForm, "frm_SelectIPAID"
The issue I have with this is that the report automatically prints. After I
select an ID, the query runs, query table shows, and then the report prints.
What I would like it to do is have the report become viewable and then allow
the user to choose whether or not to print.
How should I adjust the code for this to happen?
Thanks as always,
of a report. The code is as follows:
Private Sub cmdOK_Click()
DoCmd.OpenQuery "qry_mainreport", acViewNormal, acEdit
DoCmd.OpenReport "41 Internal Project Audit Report", , , "IPAID= '" &
Me.cboIPAReport & "'"
DoCmd.Close acForm, "frm_SelectIPAID"
The issue I have with this is that the report automatically prints. After I
select an ID, the query runs, query table shows, and then the report prints.
What I would like it to do is have the report become viewable and then allow
the user to choose whether or not to print.
How should I adjust the code for this to happen?
Thanks as always,