A
alex
Conflicting Code
Hello,
Using Access ’03…
In a form module, I have some code in the form’s before update event
that checks the value of two controls to make sure they’re not null or
= “”. This way, users cannot leave the record without the two
controls possessing a value.
I also have a delete button that deletes a record with the standard
wizard issued code:
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
My question/issue is this:
A user is on a record and one (or both) of the controls does not
contain a value. If the user wants to delete the record, the form’s
before update event fires and my message box pops up informing the
user that one/both of the control(s) is null.
In this case, the user doesn’t care; he/she just wants to delete the
record.
How can I code around this?
Thanks,
alex
Hello,
Using Access ’03…
In a form module, I have some code in the form’s before update event
that checks the value of two controls to make sure they’re not null or
= “”. This way, users cannot leave the record without the two
controls possessing a value.
I also have a delete button that deletes a record with the standard
wizard issued code:
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
My question/issue is this:
A user is on a record and one (or both) of the controls does not
contain a value. If the user wants to delete the record, the form’s
before update event fires and my message box pops up informing the
user that one/both of the control(s) is null.
In this case, the user doesn’t care; he/she just wants to delete the
record.
How can I code around this?
Thanks,
alex