P
painesvillekid
I have a form with a list box. If the user selects a
record from the list and clicks my "Edit" command button,
a data form will open showing fields for the selected
record, which the user can then edit. But if the user has
not selected a record and hits the "Edit" button, a
cryptic error message will appear, provided by Access.
One trick I have been using is to go to the code for the
command button, comment-out the canned "Err.Description"
and replace it with something like: MsgBox "You need to
select a record from the list." THis seems to work, but I
sense that there's probably some reason why I shouldn't
do this. Any thoughts? Is anything bad going to happen?
record from the list and clicks my "Edit" command button,
a data form will open showing fields for the selected
record, which the user can then edit. But if the user has
not selected a record and hits the "Edit" button, a
cryptic error message will appear, provided by Access.
One trick I have been using is to go to the code for the
command button, comment-out the canned "Err.Description"
and replace it with something like: MsgBox "You need to
select a record from the list." THis seems to work, but I
sense that there's probably some reason why I shouldn't
do this. Any thoughts? Is anything bad going to happen?