Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Applying Filters to Controls in Subforms

Status
Not open for further replies.

KMdouglas

MIS
Jan 17, 2000
11
US
I have a combo box (cboStudyCode) in a subform (named ProductionSubform)that runs off of a query. The Query has two fields JobNumber and Study Code

The criteria for this query is taken from the input of a text box (txtJobNumber) on the same form.

[Forms]![ProductionSubform]![txtJobNumber]


The combo box is updated whenever the txtJobNumber field is changed using the following code

Private Sub txtJobNumber_LostFocus()
DoCmd.Requery "cboStudyCode"
End Sub

This works perfectly when this form is used as a stand alone form, however when this is used as a subform I get the following error

Runtime Error '2488':
You cannot use the ApplyFilter action on this window.

Can someone please tell me how I can use this correctly as a subform.



Kevin M. Douglas
kevin@easternresearch.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top