Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is it possible to bypass all the Dialog Boxes when running a macro?

Status
Not open for further replies.

markvan

Technical User
Sep 12, 2001
37
0
0
AU
I have set up a series of queries that are activated by a macro, which works like magic, BUT.....
You have to click YES YES YES YES YES YES YES about a dozen times. Is it possible to automate the "Yes"s and get rid of all these confirmation screens?

Mark Van Laarhoven
Dot Imaging Online Printers, Sydney, Australia.
 
Problem solved

I used this code:

Private Sub btn_SendActivityReport_Click()
On Error GoTo Err_btn_SendActivityReport_Click
DoCmd.SetWarnings False
Dim stDocName As String

stDocName = "Macro_Send_Activity_Report"
DoCmd.RunMacro stDocName
DoCmd.SetWarnings True
Exit_btn_SendActivityReport_Click:
Exit Sub

Err_btn_SendActivityReport_Click:
MsgBox Err.Description
Resume Exit_btn_SendActivityReport_Click

End Sub


Mark Van Laarhoven
Dot Imaging Online Printers, Sydney, Australia.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top