I use the code below to set a form’s Filter property. It works fine until the variable strF contains an empty string. When this happens the line Me.Filter = strF seems to be ignored and I am always left with whatever the previous filter was. Me.Filter doesn’t accept Null. Is there some other way of emptying it? I know I could turn the filter off but this seems to a sledgehammer to crack a nut.
Me.Filter = strF
Me.FilterOn = True
Me.txtFilter = Me.Filter
Ian