filter recordset by > 1 field in vbcode

D

Danny

the following code works to filter on one field for a recordset:
Public Function FilterFieldNo(rsTemp As ADODB.Recordset, strField As String,
strFilter As Integer) As ADODB.Recordset
'open a new recordset object
rsTemp.Filter = strField & " Like '" & strFilter & "'"
Set FilterFieldNo = rsTemp
End Function

how can i modify the above code to filter on two fields of a recordset.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top