I have an issue trying to apply a filter to a recordset. Here's the code:
********************
Dim choice As String
Dim rset1, rset2 As DAO.Recordset
Dim dbs as DAO.Database
Dim var As Variant
choice = "AND [Qty Avail]<=[Level]"
set dbs=CurrentDB
Set rset1 = dbs.OpenRecordset(Me.RecordSource, dbOpenDynaset)
rset1.Filter = "CodeVendor =" & Me.CodeVendor & choice
Set rset2 = rset1.OpenRecordset
*******************
Whenever the last line is executed, i.e. rset2=rset1.OpenRecordset, I get the following error message:
<<<Too few parameters, Expected 2>>>
It used to work before? Maybe an issue with my library?
Does someone have an idea of what may be creating this issue?
Thanks,