G
Guest
I am having a proble with the syntax below using vbYesNoCancel, kindly help
me with the solution
Private Sub cmdAdd_Click()
If MsgBox("To add records, click YES; To edit records, click NO",
vbYesNoCancel, "Test Database") = vbYes Then
txtIndex.Locked = False
Else
txtIndex.Locked = True
End if
End sub
me with the solution
Private Sub cmdAdd_Click()
If MsgBox("To add records, click YES; To edit records, click NO",
vbYesNoCancel, "Test Database") = vbYes Then
txtIndex.Locked = False
Else
txtIndex.Locked = True
End if
End sub