spacemunkee
New member
- Local time
- Today, 06:47
- Joined
- Mar 5, 2007
- Messages
- 6
Private Sub Command40_Click()
On Error GoTo Err_Command40_Click
DoCmd.SetWarnings False 'Turn Warnings Off
DoCmd.RunCommand acCmdSaveRecord
DoCmd.SetWarnings True 'Turn Warnings On
Exit_Command40_Click:
Exit Sub
Err_Command40_Click:
MsgBox Err.Description
Resume Exit_Command40_Click
End Sub
In essence its just a save record button which has a macro attached to it to run on mouse down. This macro runs a query to update a table which then updates the form upon saving. The warning messages to say it is deleting the old table and updating with new values keeps popping up even though im using the above code. Any idea on how to supress these warning dialogues when i click save?
On Error GoTo Err_Command40_Click
DoCmd.SetWarnings False 'Turn Warnings Off
DoCmd.RunCommand acCmdSaveRecord
DoCmd.SetWarnings True 'Turn Warnings On
Exit_Command40_Click:
Exit Sub
Err_Command40_Click:
MsgBox Err.Description
Resume Exit_Command40_Click
End Sub
In essence its just a save record button which has a macro attached to it to run on mouse down. This macro runs a query to update a table which then updates the form upon saving. The warning messages to say it is deleting the old table and updating with new values keeps popping up even though im using the above code. Any idea on how to supress these warning dialogues when i click save?