Hi, been a long time since I had done anything in Access...I am trying to filter a recordset
here is what I have...surveys is a table in my database
Dim db as DAO.Database
Dim rs as DAO.Recordset
Dim strFILTER as String
Set db = CurrentDb
Set rs = CurrentDb.OpenRecordset("Surveys"
strFILTER = "Year=" & Forms!frmview!cmbYEAR & " AND Agency = " & Forms!frmview!cmbDEPT + 1
rs.Filter = strFILTER
although whenever it tries to do this...it tells me..."Operation is not supported for this type of object"
Like I said i havent done any of this stuff for years, and pretty much am starting from scratch, so I might be doing it completely wrong. Any help would be appreciated. Thanks!
here is what I have...surveys is a table in my database
Dim db as DAO.Database
Dim rs as DAO.Recordset
Dim strFILTER as String
Set db = CurrentDb
Set rs = CurrentDb.OpenRecordset("Surveys"
strFILTER = "Year=" & Forms!frmview!cmbYEAR & " AND Agency = " & Forms!frmview!cmbDEPT + 1
rs.Filter = strFILTER
although whenever it tries to do this...it tells me..."Operation is not supported for this type of object"
Like I said i havent done any of this stuff for years, and pretty much am starting from scratch, so I might be doing it completely wrong. Any help would be appreciated. Thanks!