I am trying to filter out a table using two fields. Does anybody know what
the VSB code is to 'compile' filtering information so that I can filter by
one field and then by the other?
.... and confusing.
There's no such thing as VSB in Access. I guess you mean VBA? Are you
building a Query (which wouldn't need any VBA code at all), or trying
to set a Form's Filter property?
Note that a Form's Filter property is just a SQL WHERE clause (without
the WHERE); as such, it can contain many fields, not just one. If you
want, you could use
Dim strFilter As String
....
strFilter = "[ThisField] = " & intNum _
& " AND [Thatfield] = '" & strText & "'"
Me.Filter = strFilter
Me.FilterOn = True
to set a Form's filter property to filter on the numeric field
ThisField and the text field ThatField.
John W. Vinson[MVP]