Board index » delphi » Help, Multiple Filters Using the Filter Property

Help, Multiple Filters Using the Filter Property

When filtering a TTable, how is it possible to set the filter for more
than one field?
I would like to setup something like this....

In the OnFilterRecord of TTable1....

Accept := field1 = Value1 and Field2 = Value2l;

How is this done...  I can accept one value, but not two....

Anyhelp would be greatly appreceiated...

email - br...@idisoft.com

Thanks in advance!

 

Re:Help, Multiple Filters Using the Filter Property


How about Accept := ((Field1 = Value1) and (Field2 = Value2))?
   (with the TTable filtered property set to True)

This should work if you just want to filter based on two values.

Mike Hefty

Quote
Brian Huff wrote:

> When filtering a TTable, how is it possible to set the filter for more
> than one field?
> I would like to setup something like this....

> In the OnFilterRecord of TTable1....

> Accept := field1 = Value1 and Field2 = Value2l;

> How is this done...  I can accept one value, but not two....

> Anyhelp would be greatly appreceiated...

> email - br...@idisoft.com

> Thanks in advance!

Other Threads