Hi,
I have a bound data entry form which has a control for a file name. The control's LostFocus event incorporates a procedure to check that the named file actually exists. If the file doesn't exist, a modal form is popped up giving the user a number of options.
In most cases the file name can be derived from other data, the control can be pre-filled and the user simply tabs through. However, in some cases the file name is too complex to be derived automatically. To provide for this situation I've provided a button which runs a procedure to open the standard Windows file selector. The user makes a selection and the control is populated.
The problem is, how to skip the validation when the user clicks the file selector button but to run the validation when the focus is moved to any other control.
Thanks in advance for your suggestions,
Ray
I have a bound data entry form which has a control for a file name. The control's LostFocus event incorporates a procedure to check that the named file actually exists. If the file doesn't exist, a modal form is popped up giving the user a number of options.
In most cases the file name can be derived from other data, the control can be pre-filled and the user simply tabs through. However, in some cases the file name is too complex to be derived automatically. To provide for this situation I've provided a button which runs a procedure to open the standard Windows file selector. The user makes a selection and the control is populated.
The problem is, how to skip the validation when the user clicks the file selector button but to run the validation when the focus is moved to any other control.
Thanks in advance for your suggestions,
Ray