I have a listbox on a form, that when a record is selected is filters data on a subform which is also on the form.
This what is being used:
Me.PartsSubFrm.Form.Filter = "[DocNo] = " & Me.DocList.Column(0)
Me.PartsSubFrm.Form.FilterOn = True
The problem is I need for the filter to work off of 2 fields, not just one. I need for the subform to filter on DocNo and Aircraft. The columns in the listbox are (0) and (4).
Just need help with the syntax - I just can't get it to work!! Any suggestions or examples???
Thanks in advance!!
jw5107
This what is being used:
Me.PartsSubFrm.Form.Filter = "[DocNo] = " & Me.DocList.Column(0)
Me.PartsSubFrm.Form.FilterOn = True
The problem is I need for the filter to work off of 2 fields, not just one. I need for the subform to filter on DocNo and Aircraft. The columns in the listbox are (0) and (4).
Just need help with the syntax - I just can't get it to work!! Any suggestions or examples???
Thanks in advance!!
jw5107