A
Afrosheen
I'm using a filter for 9 different command buttons to get a report of the
results. The problem is that after I press one button and get the results and
then press another button I get a whole list of my roster instead of the
filtered records. Here is my program.
Filter = ""
Dim stDocName As String
Dim stwhere As String
stwhere = "([cell]=true) and [status] = 'working'"
stDocName = "rpt_select"
FilterOn = True
Filter = strwhere
Me.Requery
DoCmd.OpenReport "rpt_select", acPreview, , stwhere, , "Cell Report"
I'm trying to clear out the filter so the next button I choose will build a
new filter.
Am I doing something wrong?
Thanks for reading this
results. The problem is that after I press one button and get the results and
then press another button I get a whole list of my roster instead of the
filtered records. Here is my program.
Filter = ""
Dim stDocName As String
Dim stwhere As String
stwhere = "([cell]=true) and [status] = 'working'"
stDocName = "rpt_select"
FilterOn = True
Filter = strwhere
Me.Requery
DoCmd.OpenReport "rpt_select", acPreview, , stwhere, , "Cell Report"
I'm trying to clear out the filter so the next button I choose will build a
new filter.
Am I doing something wrong?
Thanks for reading this