Hi,
I have a working filter which uses the required field [defined as Field] and record(s) [Defined as Node] within which are needed. with the below code:
However I'm now wanting to do the reverse and select what does not equal the field and record(s) I've defined. I was thinking this would be a simple case of changing the = to Not as below:
But unfortunatly it comes up with a debug error. Can this be done? Or is there some other means than above?
Thanks
I have a working filter which uses the required field [defined as Field] and record(s) [Defined as Node] within which are needed. with the below code:
Code:
Set tbl = Screen.ActiveDatasheet
tbl.Filter [b]=[/b] Field & _
"=" & _
Node
tbl.FilterOn = True
However I'm now wanting to do the reverse and select what does not equal the field and record(s) I've defined. I was thinking this would be a simple case of changing the = to Not as below:
Code:
Set tbl = Screen.ActiveDatasheet
tbl.Filter [b]Not[/b] Field & _
"=" & _
Node
tbl.FilterOn = True
But unfortunatly it comes up with a debug error. Can this be done? Or is there some other means than above?
Thanks