Hello
I have several controls on a form linked to a dataset. Two of the
controls can be used to populate one field in the dataset (i.e. by
selecting an item from a drop down list to get an id, or by entering
the id manually). I want to force the user to enter one or the other
and currently have Validation on the two controls. My problem is that
I want to be able to move between the two controls without causing the
validation. I thought I could test to see what control is going to get
the focus and bypass the validation if one of the two controls
selected, otherwise raise the validation event, but I don't seem to be
able to do this. When mouse clicking and changing focus the events
will allow me to do this as LostFocus is called first. But pressing
Tab means that all the validation is done before you know which
control is gaining focus.
Can anyone suggest a solution?
Cheers
Steve