Показать сообщение отдельно
  #2  
Старый 11.05.2012, 17:54
Аватар для NumLock
NumLock NumLock вне форума
Let Me Show You
 
Регистрация: 30.04.2010
Адрес: Северодвинск
Сообщения: 5,426
Версия Delphi: 7, XE5
Репутация: 59586
По умолчанию

нужно на этапе проектирования встать на свойство MasterFields и нажать F1, посмотреть MasterSource, MasterFields example:
Цитата:
Suppose you have a master table named Customer that contains a CustNo field. You also have a data source component named CustSource whose DataSet property specifies the Customer table. Finally, you have a detail table named Orders that also has a CustNo field. To display only those records in Orders that have the same CustNo value as the current record in Customer, write this code:

Orders.MasterSource := CustSource;

Orders.MasterFields := 'CustNo';

If you want to display only the records in the detail table that match more than one field value in the master table, specify each field and separate them with a semicolon.

Orders.MasterFields := 'CustNo;SaleDate';
__________________
Пишу программы за еду.
__________________
Ответить с цитированием