
with DM do begin
IBQFamily.SQL.Clear;
IBQFamily.SQL.Append('select * from Family');
IBQFamily.SQL.Append('where
Empl oyers='+IntToStr(IB QEmpl oyersID.AsInteger));
IBQFamily.SQL.Append('Order By DateBirth');
IBQFamily.Open;
IBQMotionEmployers. SQL.Clear;
IBQMotionEmployers.SQL.Append('select * from MotionEmployers');
IB QMoti onEmpl oyers.S QL .App end('where
Empl oyers='+IntToStr(IB QEmpl oyersID.AsInteger));
IBQMotionEmployers.SQL.Append('Order By DateFrom');
IB QMoti onEmpl oyers.Open;
IBQChangeFIO.SQL.Clear;
IBQChangeFIO.SQL.Append('select * from ChangeFIO');
IBQChangeFIO.SQL.Append('where
Empl oyers='+IntToStr(IB QEmpl oyersID.AsInteger));
IBQChangeFIO.SQL.Append('Order By DateChange');
IBQChangeFIO.Open;
{Application.MessageBox(PChar(IBQEmployersFamily.AsString),PChar(IntToStr(IB
QEmployersID.AsInteger)),MB_OK);}
IBQFormations.SQL.Clear;
IBQFormations.SQL.Append('select * from Formations');
IBQFormations.SQL.Append('where
Empl oyers='+IntToStr(IB QEmpl oyersID.AsInteger));
IBQFormations.SQL.Append('Order By YearEnd');
IBQFormations.Open;
IBQQualifications.SQL.Clear;
IBQQualifications.SQL.Append('select * from Qualifications');
IBQQualifications.SQL.Append('where
Empl oyers='+IntToStr(IB QEmpl oyersID.AsInteger));
IBQQualifications.SQL.Append('Order By Dates');
IBQQualifications.Open;
IBQIncQualifics.SQL.Clear;
IBQIncQualifics.SQL.Append('select * from IncQualifics');
IBQIncQualifics.SQL.Append('where
Empl oyers='+IntToStr(IB QEmpl oyersID.AsInteger));
IBQIncQualifics.SQL.Append('Order By DateOrder');
IBQIncQualifics.Open;
IBQBookWorks.SQL.Clear;
IBQBookWorks.SQL.Append('select * from BookWorks');
IBQBookWorks.SQL.Append('where
Empl oyers='+IntToStr(IB QEmpl oyersID.AsInteger));
IBQBookWorks.SQL.Append('Order By DateOrder');
IBQBookWorks.Open;