M
mlagace
Good day,
I have created a button in a form to delete records. I am using the
following code:
Private Sub DeleteRecord_click()
if me.Dirty then
me.undo
end if
if not me.newrecord then
runcommand acCmdDeleteRecord
end if
end sub
The problem is when i click the button, it will delete the record but an
error message always shows "Run time error 3021: No current record". Any
ideas?
Regards
mat
I have created a button in a form to delete records. I am using the
following code:
Private Sub DeleteRecord_click()
if me.Dirty then
me.undo
end if
if not me.newrecord then
runcommand acCmdDeleteRecord
end if
end sub
The problem is when i click the button, it will delete the record but an
error message always shows "Run time error 3021: No current record". Any
ideas?
Regards
mat