Solved Problem with deleting a record in a macro

Tom d

Member
Local time
Today, 01:49
Joined
Jul 12, 2022
Messages
80
On the authors form the button delete I have code to delete a record. It works if I select a record from the combo box and press the delete button and press next or previous buttons. It does not work by pressing the delete button alone without pressing the next or previous buttons it takes the first If to delete a record. The else is executed but the delete never happens.



If Not [Form].[NewRecord] then

RunMenuCommand

Command DeleteRecord

Else

RunMenueCommand

Command DeleteRecord



If you need to see more code look at the attached file
 

Attachments

you again add Reference (VBA->Tools->References) to ArcGISVersion 1.0 Type Library.
i don't have that library so you need to add the Reference again.
 

Users who are viewing this thread

Back
Top Bottom