
suppress warnings on DoCmd.RunSQL ?
There are two ways.
1) Go to Tools>Options>Edit/Find and click off the check
boxes for Confirm.
2) If you are distributing the application to many users
the following code turns off and on the action queries
when the form is Open or Closed. The first 3 lines should
appear at the top of the form module.
Option Compare Database
Option Explicit
Public change As Boolean
Private Sub Form_Close()
'Turn messages back on
If change = False Then
Application.SetOption "Confirm Action Queries", True
End If
End Sub
Private Sub Form_Open(Cancel As Integer)
Dim x
'Confirm record changes is on turn messages off
x = Application.GetOption("Confirm Action Queries")
If x = True Then
Application.SetOption "Confirm Action Queries", False
change = False
End If
End Sub
Quote:
>-----Original Message-----
>I am executing an insert using DoCmd.RunSQL
("mySQLstring") in a module. How
Quote:
>can I suppress the "You are about to append 1 rows"
message as I am gonna
Quote:
>use this to insert a bunch of records. Thanks
>Terry
>.