Oppenhiemer
Programmer
Hi -
While using the TIBQuery component for Interbase, I would like to filter the records displayed. So I thought I would simple set the filter property for this component. WRONG!
Or at least it does not seem to work the way Im using it. If I try setting the filter property at runtime using code such as :
MediaQry.Filter := 'ORDER_NO = 12';
MediaQry.Filtered := true;
Nothing happens. The records are left un-changed (no filter is applied.) I have tried messing with the FilterOptions property and closing - then opening the Query again, all to no avail.
Could anyone please tell me where Im going wrong ?
Many thanks..
Opp.
P.S The exact expression of the filter shown here is just by example, I have tried several variations all with no luck.
While using the TIBQuery component for Interbase, I would like to filter the records displayed. So I thought I would simple set the filter property for this component. WRONG!
Or at least it does not seem to work the way Im using it. If I try setting the filter property at runtime using code such as :
MediaQry.Filter := 'ORDER_NO = 12';
MediaQry.Filtered := true;
Nothing happens. The records are left un-changed (no filter is applied.) I have tried messing with the FilterOptions property and closing - then opening the Query again, all to no avail.
Could anyone please tell me where Im going wrong ?
Many thanks..
Opp.
P.S The exact expression of the filter shown here is just by example, I have tried several variations all with no luck.