JustJerry
09-02-2005, 12:43 PM
What am I missing???
If Me.Ant2Qry_subform.Visible = False Then
DoCmd.GoToControl [LineQry subform].Form.Controls!WCTypeID
End If
The above code executes after a user checks the 'checkboxA' on my main form.
What is happening is that I get a error saying there is No Control "EWP63" on the subform [LineQry subform]. "EWP63" is the VALUE currently in the field WCTypeID. Why won't it just GO to the control, and WHY is it assigning a value to the control I am trying to go to??
On my subform, WCTypeID is a combo box that gets it's data from a qry, if this matters any.
Thank you for help,
Newbie Extraordinairehttp://vbaexpress.com/forum/images/smilies/037.gif
If Me.Ant2Qry_subform.Visible = False Then
DoCmd.GoToControl [LineQry subform].Form.Controls!WCTypeID
End If
The above code executes after a user checks the 'checkboxA' on my main form.
What is happening is that I get a error saying there is No Control "EWP63" on the subform [LineQry subform]. "EWP63" is the VALUE currently in the field WCTypeID. Why won't it just GO to the control, and WHY is it assigning a value to the control I am trying to go to??
On my subform, WCTypeID is a combo box that gets it's data from a qry, if this matters any.
Thank you for help,
Newbie Extraordinairehttp://vbaexpress.com/forum/images/smilies/037.gif