I have a delete button on my form and every time I click on it, it gives me an error
On Error GoTo cmdDeleteMessage_Error
If IsNull([DataID]) Then Exit Sub
If MsgBox("Are you sure you wish to delete this record?", vbQuestion + vbYesNo, "Confirm Delete") <> vbYes Then Exit Sub...