I have some code set at on exit() that stops the user entering Null as follows :
If IsNull(Me.Search) Then Cancel = True
works well where input is required, but i need to allow the form exit command button to be pressed, the command above doesn't allow this.
Is there any additional code i can use to recognise when the exit command button is clicked, in other words only overide the above coding if the exit button clicked.
If IsNull(Me.Search) Then Cancel = True
works well where input is required, but i need to allow the form exit command button to be pressed, the command above doesn't allow this.
Is there any additional code i can use to recognise when the exit command button is clicked, in other words only overide the above coding if the exit button clicked.