Sam Summers
Registered User.
- Local time
- Today, 17:13
- Joined
- Sep 17, 2001
- Messages
- 939
On a form, i have a combobox (JobNumber) that the focus is set to when the form is opened. I also have a textbox (JobNo) that displays the current location. Now i want to ensure that the user selects an item from the list that is different from the current location. before they enter an item in a textbox (NumberInput) on the form.
At the moment I have this code on the Exit event:-
Me.JobNumber.SetFocus
If Me.JobNumber = Me.JobNo Then
MsgBox "Please select a new location"
Me.JobNo.Setfocus
However I am getting the cannot reference a contol etc. etc.
Thanks in advance
At the moment I have this code on the Exit event:-
Me.JobNumber.SetFocus
If Me.JobNumber = Me.JobNo Then
MsgBox "Please select a new location"
Me.JobNo.Setfocus
However I am getting the cannot reference a contol etc. etc.
Thanks in advance