Re:More than one filter condition from varibles
Carlos writes:
Quote
Mytable.filter := 'date=' datepicker.date and 'state=' edit1.txt
How do I do this?
Must I use the onfilter routine or can I use just the filter property?
Date and string values need to be quoted and in the correct format (and
'and' needs to be part of the string). Try:
Mytable.filter := 'date=' QuotedStr(FormatDateTime('mm/dd/yy',
datepicker.date)
+ ' and state=' QuotedStr(edit1.txt);
--
Wayne Niddery - Logic Fundamentals, Inc. (
www.logicfundamentals.com)
RADBooks:
www.logicfundamentals.com/RADBooks.html
"It is error alone which needs the support of government. Truth can
stand by itself." - Thomas Jefferson