thmsjlmnt3953
Registered User.
- Local time
- Today, 21:04
- Joined
- May 20, 2014
- Messages
- 120
Hi,
im trying to check for certain user levels then if criteria is met it will ask to continue then clear a table..
im trying to check for certain user levels then if criteria is met it will ask to continue then clear a table..
Code:
Private Sub Command9_Click()
If strSecLvl = dev Or admin Or sprvsr Then
If MsgBox("Do you wish to clear the logs?", vbYesNo, "Clear Logs") = vbYes Then
DoCmd.SetWarnings False
DoCmd.RunSQL "Delete * from tblLogs"
DoCmd.SetWarnings True
Me.Requery
Else
MsgBox "Logs not cleared", vbOKOnly, "Not Cleared"
End If
End If
End Sub