G
Guest
I've got a command button that uses the following to delete a record:
Response = MsgBox("Delete The Current Material?", vbYesNo, "Atlantic County
Office Of GIS")
If Response = vbYes Then
DoCmd.RunCommand acCmdDeleteRecord
MaterialSum
DoCmd.RunCommand acCmdCloseWindow
ElseIf Response = vbNo Then
Exit Sub
End If
Where MaterialSum is a module that totals the price to the main form using
Dsum. It works, sort of... The record is zero'd out so that all the fields
are empty but it is not deleted from the table. Is this because I have
controls that are locked? Or rather, are there any suggestions as to why
this might be happening?
Response = MsgBox("Delete The Current Material?", vbYesNo, "Atlantic County
Office Of GIS")
If Response = vbYes Then
DoCmd.RunCommand acCmdDeleteRecord
MaterialSum
DoCmd.RunCommand acCmdCloseWindow
ElseIf Response = vbNo Then
Exit Sub
End If
Where MaterialSum is a module that totals the price to the main form using
Dsum. It works, sort of... The record is zero'd out so that all the fields
are empty but it is not deleted from the table. Is this because I have
controls that are locked? Or rather, are there any suggestions as to why
this might be happening?