Thanks, that helped me get over a hurdle or two. Now here's a problem. The code below cause's the exception after it.
form1.PvSQLSession1.ServerName := 'Adentry';
form1.PvQuery1.DatabaseName := 'MillerOE';
form1.PvQuery1.SQL.Add ('select * from ' + #34 + 'Contract_record' + #34);
form1.PvQuery1.SQL.Add (' where ClientNumber = ' + form1.tbCLient.FieldByName('ClientNumber').asString);
form1.PvQuery1.Active := true;
Incompatible types in predicate.
What does that mean? If I leave off the 2nd 'sql.add, it works fine.