hallo,
weiss jemand warum bei der abfrage mit OR immer nur das feld CDLabel1 abgefragt wird? was in den restlichen feldern (CDLabel2 bis 5) steht wird nicht beachtet.
mit der sql abfrage wird auf eine access datei zugegriffen.
<PRE>
SQL.Add(' WHERE (((CDLabel1) LIKE :X)) ');
SQL.Add(' OR (((CDLabel2) LIKE :X)) ');
SQL.Add(' OR (((CDLabel3) LIKE :X)) ');
SQL.Add(' OR (((CDLabel4) LIKE :X)) ');
SQL.Add(' OR (((CDLabel5) LIKE :X)) ');
Parameters.ParamByName('X').Value := '%'+VarLAB+'%';
</PRE>
gruss matthias
weiss jemand warum bei der abfrage mit OR immer nur das feld CDLabel1 abgefragt wird? was in den restlichen feldern (CDLabel2 bis 5) steht wird nicht beachtet.
mit der sql abfrage wird auf eine access datei zugegriffen.
<PRE>
SQL.Add(' WHERE (((CDLabel1) LIKE :X)) ');
SQL.Add(' OR (((CDLabel2) LIKE :X)) ');
SQL.Add(' OR (((CDLabel3) LIKE :X)) ');
SQL.Add(' OR (((CDLabel4) LIKE :X)) ');
SQL.Add(' OR (((CDLabel5) LIKE :X)) ');
Parameters.ParamByName('X').Value := '%'+VarLAB+'%';
</PRE>
gruss matthias
Comment