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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Expose filter criteria in subform for use in VBA of main form 1

Status
Not open for further replies.

MrMode

Technical User
Aug 28, 2003
195
GB
I have a main form and a subform.

I can 'filter' the data in the subform by using the arrow next to the column heading and selecting the filters I want to apply.

Is it possible to identify what 'filters' have been selected against the column so that it can be used elsewhere in vba code?
 
Dim strFilter As String
Dim frm As Access.Form
Set frm = Me.subformName.Form
strFilter = frm.Filter

Now you will have to look at the result, because you will likely have to do some string manipulation to get rid of the subform reference.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top