> Unfortunately, no go. Which event should I be doing this in, the "On Apply
> Filter" event or the "On Filter" event. I've tried them both with this
[quoted text clipped - 25 lines]
> > > me.Status = "Rev" ' my original criteriea
> > > End If
No this just stopped the form from filtering altogether.
My issues is that I open the form with a filter, but I want to allow the
user to do further filtering, but based on my original filter. And this
works when they apply the filter, but when the remove the filter it removes
my orginal filter as well, so I am trying to reapply the "default" filter on
the remove filter event.
> Got it!
>
[quoted text clipped - 42 lines]
> > > > me.Status = "Rev" ' my original criteriea
> > > > End If
Evi - 23 May 2008 22:08 GMT
You can still filter by code but not via the toolbar.
You can supply your own (controlled) remove filter button which begins each
operation with
Me.FilterOn = False
(to remove the previous filter)
followed by
Me.Filter = "[Status]= 'Rev'"
Me.FilterOn = True
If you are supplying the usual tools for custom filtering (textboxes,
combos, buttons etc) you could concatenate your criteria onto the beginning
of theirs in the AfterUpdate and Onclick events
eg the user has typed text into a text box named txtCriteria and pressed a
button
Dim MyFilt As String
MyFilt = "[Status]= 'Rev' AND "
Me.Filter = MyFilt & Me.txtCriteria
Me.FilterOn = True
Evi
> No this just stopped the form from filtering altogether.
>
[quoted text clipped - 50 lines]
> > > > > me.Status = "Rev" ' my original criteriea
> > > > > End If
Jan Baird - 27 May 2008 20:51 GMT
Jan Baird is out of the country until September 20. Every effort will be
made to respond to messages, but please be patient.
Jan Baird is out of the country until September 20. Every effort will be
made to respond to messages, but please be patient.