Dim oDB As Database, iResult As Integer
Set oDB = OpenDatabase(App.Path & "\mydbfile.mdb")
[color green]'Confirm[/color]
iResult = MsgBox("Are you sure you want to delete ALL records?", vbOKCancel + vbCritical + vbDefaultButton2, "Delete All Records?")
If iResult = vbOK Then
Screen.MousePointer = vbHourglass
DoEvents
DoEvents
DoEvents
[color green]'Delete Operation[/color]
oDB.Execute "DELETE * FROM main"
DoEvents
Screen.MousePointer = vbDefault
MsgBox "Delete Operation Completed"
End If
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.