I am running the following bit of code in the on click event of a button:
If IsNull(Me.UseZip) Then
Msgbox "Please Note: 'Use zip code/Acct number opening' must be scored before continuing!"
Me.cmdGetNewFileInfo.SetFocus
Me.UseZip.SetFocus
End If
I get a runtime error 2110 that states:
Database can't move the focus to the control UseZip.
*The control may be a type that can't receive the focus, such as a label.
*The control's visible properties may be set to No.
*The control's enabled properties may be set to No.
The UseZip control is a combo box, and I have the visible and enabled properties set to yes. I have even double checked this by puting Me.UseZip.Visible = True and Me.UseZip.Enabled = True before I try to set focus, but to no avail.
Is there something that I am over looking?
Josh
If IsNull(Me.UseZip) Then
Msgbox "Please Note: 'Use zip code/Acct number opening' must be scored before continuing!"
Me.cmdGetNewFileInfo.SetFocus
Me.UseZip.SetFocus
End If
I get a runtime error 2110 that states:
Database can't move the focus to the control UseZip.
*The control may be a type that can't receive the focus, such as a label.
*The control's visible properties may be set to No.
*The control's enabled properties may be set to No.
The UseZip control is a combo box, and I have the visible and enabled properties set to yes. I have even double checked this by puting Me.UseZip.Visible = True and Me.UseZip.Enabled = True before I try to set focus, but to no avail.
Is there something that I am over looking?
Josh