Msg Box

Neo

Registered User.
Local time
Today, 18:24
Joined
Mar 5, 2003
Messages
42
I want to do this but not sure how to code it

If me.chkUser = True Then
MsgBox " Do you want to update
If yes then
Run SQL
If no
Dont run SQL

thanks in advance for the help
 
If Me.chkUser = True Then
If MsgBox("Do you want to update?", vbYesNo) = vbYes Then
DoCmd.SetWarnings False
DoCmd.OpenQuery "NameOfUpdateQuery"
DoCmd.SetWarnings True
End If
End If
 

Users who are viewing this thread

Back
Top Bottom