D
danitrin via AccessMonster.com
I'm using the following code to delete a record from an unbound form. For
some reason the code does not work. Any suggestions?
Dim strSQL As String
Dim db As DAO.Database
If MsgBox("Are you sure you want to delete this record?", vbQuestion +
vbYesNo, "Delete Record") = vbYes Then
Set db = CurrentDb
strSQL = "DELETE * FROM tblablExamHistory WHERE [ablexamId] =me.
txtablexamID"
db.Execute strSQL
End If
some reason the code does not work. Any suggestions?
Dim strSQL As String
Dim db As DAO.Database
If MsgBox("Are you sure you want to delete this record?", vbQuestion +
vbYesNo, "Delete Record") = vbYes Then
Set db = CurrentDb
strSQL = "DELETE * FROM tblablExamHistory WHERE [ablexamId] =me.
txtablexamID"
db.Execute strSQL
End If