I'm a newby . Created a from via wizard with two combo boxes. In the first user must select a Customer. Based on first selection, second combo box displayed Material List of selected Customer again for selection. This is all working 100%
Problem : I want to force user to select a Customer in first combo box. If nothing is selected, the Access must "force" a selection.
Below is not working ?
If user does not select anything I do get the TEST message displayed, but the "Me.Mat_PSlipIN_NewCustomer.SetFocus" does not force the focus back to the first combobox for selection.
Hope I've explained myself....
Expand|Select|Wrap|Line Numbers
- Private Sub Mat_PSlipIN_NewCustomer_Exit(Cancel As Integer)
- If IsNull(Mat_PSlipIN_NewCustomer.Value) Or Mat_PSlipIN_NewCustomer.Value = "" Then
- msgbox "TEST"
- Me.Mat_PSlipIN_NewCustomer.SetFocus
- Else
- End If
- End Sub
Please assist !