G
Guest
I am moving the focus to a text box but I get run-time error '2110':
Microsoft Office Access can't move the focus to the control 'txtRowNo', but I
can't see what's wrong.
txtEmpNo.SetFocus
If txtEmpNo.Text = "" Then
MsgBox ("Look Up Requires An Employee No. And A Row No.")
Exit Sub
End If
txtRowNo.SetFocus <---- This line is where it stops
If txtRowNo.Text = "" Then
MsgBox ("Look Up Requires An Employee No. And A Row No.")
Exit Sub
Microsoft Office Access can't move the focus to the control 'txtRowNo', but I
can't see what's wrong.
txtEmpNo.SetFocus
If txtEmpNo.Text = "" Then
MsgBox ("Look Up Requires An Employee No. And A Row No.")
Exit Sub
End If
txtRowNo.SetFocus <---- This line is where it stops
If txtRowNo.Text = "" Then
MsgBox ("Look Up Requires An Employee No. And A Row No.")
Exit Sub