TUniQuery
Posted: Thu 25 Jul 2013 15:04
Hello,
I have a Table Customer (CustomerNO,Name )Primary Key : customerno
data Customer : 1 ,one
2 , two
then a Table Sales (Salesno,Date, CustomerNo) SalesNo is Primary Key.
data sales : 001, 2013/7/1, 1
002, 2013/7/1, 1
003,2013/7/1, 2
qryCustomer.SQL.Text := 'SELECT * FROM Customer';
qrysales.SQL.Text := 'SELECT * FROM Sales WHERE CustomerNo = :CustomerNo';
qryCustomerdatasource.DataSet := qryCustomer;
qrysales.MasterSource := qryCustomerdatasource;
qrycustomer.open;
qrysales.open;
why after qrysales.open i can not see any record ini qrysales even if i move to another customer ? whats happened in qrysales? thanks a lot.
I have a Table Customer (CustomerNO,Name )Primary Key : customerno
data Customer : 1 ,one
2 , two
then a Table Sales (Salesno,Date, CustomerNo) SalesNo is Primary Key.
data sales : 001, 2013/7/1, 1
002, 2013/7/1, 1
003,2013/7/1, 2
qryCustomer.SQL.Text := 'SELECT * FROM Customer';
qrysales.SQL.Text := 'SELECT * FROM Sales WHERE CustomerNo = :CustomerNo';
qryCustomerdatasource.DataSet := qryCustomer;
qrysales.MasterSource := qryCustomerdatasource;
qrycustomer.open;
qrysales.open;
why after qrysales.open i can not see any record ini qrysales even if i move to another customer ? whats happened in qrysales? thanks a lot.