L
Liz
I have tired to set up a filter for a recordset, but it does not seem to work.
Set rstTemp = CurrentDb.OpenRecordset("Entry")
rstTemp.Filter = "ClassNumber = '12'"
Set rstFiltered = rstUnfiltered.OpenRecordset
When I try to run this I get a runtime error 3251 on the second line.
Can anyone help on how to assign the filter? The ClassNumber field is a
text field. I eventually want to construct a string so the class number can
be incremented, but if I can get the filter to work at all I will be
delighted!
Set rstTemp = CurrentDb.OpenRecordset("Entry")
rstTemp.Filter = "ClassNumber = '12'"
Set rstFiltered = rstUnfiltered.OpenRecordset
When I try to run this I get a runtime error 3251 on the second line.
Can anyone help on how to assign the filter? The ClassNumber field is a
text field. I eventually want to construct a string so the class number can
be incremented, but if I can get the filter to work at all I will be
delighted!