>>>Hi everybody,
>>>
>>>I made a change in my form to use SET KEY instead of original SET FILTER. Everything seems to be working OK, but I still have a question - how wll I know the number of records satisfying the KEY (e.g. the number of filtered records)?
>>>
>>>The _TALLY variable doesn't work.
>>>
>>>I actually only need to know if I filtered something or not, although I created a variable for the number of filtered records. So, I can change it to logical variable, if you know an easy way to find if I filtered something or not, although I prefer to have a number.
>>>
>>>Thanks a lot in advance.
>>
>>_TALLY can work:
>>
>>COUNT
>>? _TALLY
>>
>
>You need to count first.
Counting with SET KEY is extremely fast, much faster than a SQL. If the count is non-zero you have your logical test too. Since it was my suggestion to go with SET KEY, you're welcome.