D
dfeigen115
I have a combox (CACRNumber) that requires an entry be selected in order to
set the values for other controls on the form. In the LostFocus event, I
check to see if the combo box is null and if so display a msgbox and reset
the focus back to the CACRNumber. In this instance, the msgbox displays as
planned, but the focus does not return to the CACRnumber combo.
If IsNull(Me.CACRNumber) Then
MsgBox ("Please select a CACR from the list")
Me.CACRNumber.SetFocus
Else
DoCmd.RunCommand acCmdRefresh
End If
Thanks for your time, Dan
set the values for other controls on the form. In the LostFocus event, I
check to see if the combo box is null and if so display a msgbox and reset
the focus back to the CACRNumber. In this instance, the msgbox displays as
planned, but the focus does not return to the CACRnumber combo.
If IsNull(Me.CACRNumber) Then
MsgBox ("Please select a CACR from the list")
Me.CACRNumber.SetFocus
Else
DoCmd.RunCommand acCmdRefresh
End If
Thanks for your time, Dan