Hey Dave, you didn't give much details for me to work with.
I have a few forms like this one:
First I create a Function called FilterData().
Function FilterData()
dim strFilter as string
if Toggle1 = true then
strfilter = "[MyFiled] = " & Combo2
else
strFilter = ""
endif
me.filter = strFilter
me.Filteron = true
end if
And would put on the event onChange of the Toggle button and combobox:
=FilterData()
Any change on the combo or toggle value, will refresh the filter
Does it help?
Mauricio Silva
David M C said:
I have a filter set up on a combobox that I would like to enable and disable
using a toggle button. How would I do this?
Thanks
Dave