J
Jeff
I am having trouble getting the setfocus command to work. I have a textbox
that is linked to a database field. I want to make sure they have entered
something in the textbox before the move to the next field. I put vb code in
the loseFocus event. I looks like this.
If IsNull(Me.Survey_ID.Value) Then
Me.Survey_ID_Status.Value = "BAD"
Me.Survey_ID.SetFocus
Else
Me.Survey_ID_Status.Value = "GOOD"
End If
I can see the value change in the Survey_ID_Status field when I run the
form, but it never sets the focus back to the Survey_ID textbox. It just
keeps moving forward.
It's like it just ignores the Setfocus command.
that is linked to a database field. I want to make sure they have entered
something in the textbox before the move to the next field. I put vb code in
the loseFocus event. I looks like this.
If IsNull(Me.Survey_ID.Value) Then
Me.Survey_ID_Status.Value = "BAD"
Me.Survey_ID.SetFocus
Else
Me.Survey_ID_Status.Value = "GOOD"
End If
I can see the value change in the Survey_ID_Status field when I run the
form, but it never sets the focus back to the Survey_ID textbox. It just
keeps moving forward.
It's like it just ignores the Setfocus command.