E
Eddy
I'm using the following code to delete a record from a form in Access97.
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
The problem is after the record deletes, the Navigation Buttons at the
bottom of the screen still
shows the record as being the one deleted. For example, if I am adding a
line 2 to the record, after deleting line 2, the Navigation Button still
says 2 while the line number field says 1. If I try to leave the form I get
the message that the changes will not take effect because of duplicate
records in Key fields. Is there a way to call up the privious line after
deleting the line to avoid this error? Or am I missing something?
Thanks for the help.
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
The problem is after the record deletes, the Navigation Buttons at the
bottom of the screen still
shows the record as being the one deleted. For example, if I am adding a
line 2 to the record, after deleting line 2, the Navigation Button still
says 2 while the line number field says 1. If I try to leave the form I get
the message that the changes will not take effect because of duplicate
records in Key fields. Is there a way to call up the privious line after
deleting the line to avoid this error? Or am I missing something?
Thanks for the help.