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
If Not [Form].[NewRecord] then
RunMenuCommand
Command DeleteRecord
Else
RunMenueCommand
Command DeleteRecord
If you need to see more code look at the attached file