Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

delphi XE2 Ado Filter problem

Status
Not open for further replies.

MLNorton

Programmer
Nov 15, 2009
134
US
What is wrong with this filter statment?

Form_Main.ADOTable1.Filter := 'Active = ' + quotedStr('A') or
'Active = ' + quotedStr('B');
 
Probably lack of quotes around the "or"
Code:
Form_Main.ADOTable1.Filter := 'Active = ' + quotedStr('A') +' or Active = ' + quotedStr('B');
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top