R
ridgerunner
The code below is working great, except, when the switchboard manager is
open. Then using the menu bar for File, Print causes the switchboard manager
to print, instead of the report. I tried keeping the Form open but it makes
no difference. I also tried to set focus to the report, but I keep getting
error messages, most likely because I am sure how to do that.
Private Sub CmdOK_Click()
DoCmd.OpenQuery "qryRptStoreDate", acViewNormal, acEdit
DoCmd.OpenReport "RptInspStoreDate", acViewPreview
DoCmd.Close acForm, "fdlgRptStoreDate"
DoCmd.Close acQuery, "qryRptStoreDate"
End Sub
ridgerunner
open. Then using the menu bar for File, Print causes the switchboard manager
to print, instead of the report. I tried keeping the Form open but it makes
no difference. I also tried to set focus to the report, but I keep getting
error messages, most likely because I am sure how to do that.
Private Sub CmdOK_Click()
DoCmd.OpenQuery "qryRptStoreDate", acViewNormal, acEdit
DoCmd.OpenReport "RptInspStoreDate", acViewPreview
DoCmd.Close acForm, "fdlgRptStoreDate"
DoCmd.Close acQuery, "qryRptStoreDate"
End Sub
ridgerunner