Hi,
I want to filter records of a recordset to export them afterwards. What I did is opening a new recordset, applying the filter and then creating a new filtered recordset. While executing the code, I get an error for the following line. The error is saying that the function should at least have two arguments. Is there anyone who knows the solution?
I want to filter records of a recordset to export them afterwards. What I did is opening a new recordset, applying the filter and then creating a new filtered recordset. While executing the code, I get an error for the following line. The error is saying that the function should at least have two arguments. Is there anyone who knows the solution?
Code:
Dim db As DAO.Database
Dim rst, rsf As DAO.Recordset
Set rst = db.OpenRecordset("SELECT Archive.num_article, Archive.Division, FROM")
rst.Filter = Form.Filter
Set rsf = rst.OpenRecordset