unit z3;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, DBCtrls, Grids, DBGrids, StdCtrls;

type
  TForm8 = class(TForm)
    DBGrid1: TDBGrid;
    DBLookupComboBox1: TDBLookupComboBox;
    Label1: TLabel;
    Label2: TLabel;
    procedure DBLookupComboBox1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form8: TForm8;

implementation

uses datamodule, glavn, klubs, pasport, sooruzheniya, sportsmen, z1, z2;

{$R *.dfm}

procedure TForm8.DBLookupComboBox1Click(Sender: TObject);
begin
 dm1.ADOQuery6.Filtered:=true;
dm1.ADOQuery6.Filter:='фио_тренера='''+form3.DBLookupComboBox1.Text+'''';
end;    
end.
