Identifying an event causing an error

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

greetings to all
I have a combo box that gives an error message when I click it (2nd click,
actually) if the box is empty. No big deal really, because it causes no
harm. As a learning exercise, I'm trying to identify the event that is
triggering the error so I can add error-handling code. Here's my question:
In general, is there a good way to identify which event is causing a given
error? To me, at least, it's not always obvious.
 
Cinnie;

Copy and Paste these in the OnClick Event of the Button:

MsgBox Error$
MsgBox Err.Number

Andy
 
Back
Top