Although the code that I'm using for preventing the deletion of
certain keywords does work for an Access 97 DB combo box based on a
separate table, it probably needs to be tweaked because of the strange
post message box errors experienced.
Any assistance to clean up the code below and/or replace it with
something more consistent with the intended results will be
appreciated. Thanks.
On Delete Event Procedure
If Keyword = "Display" Then
MsgBox "This Keyword cannot be deleted."
Cancel = True
End If
End Sub
This seems a little strange, but I have received four different types
of messages following the clicking of okay on the message box, like:
Method 'Do Menu Item' of object 'IDoCmd' failed; the object doesn't
contain the Automation object tblIntro (this is a one check box field
in an unrelated table and even after deleting it and associated code,
it made no difference); database can't find the field "Forms"
referred to in your expression (don't have a field named Forms).