SQL text individually data set in Stringgrid or TDBGrid
Posted: Tue 26 Jan 2021 14:48
For Combox1 this works well in the selection boxes.
But what is the solution for a stringgrid or TDBGrid?
Who can help me?
Thanks Jmich
Code: Select all
liteQuery1.SQL.Text := 'SELECT projektnummer, bauprojekt, bauort from firmenprojekte order by projektnummer';
liteQuery1.Open;
while not liteQuery1.Eof do
begin
cbx_auswahl_projekte.Items.Add(liteQuery1.FieldByName('projektnummer').AsString);
cbx_ausw2.Items.Add(liteQuery1.FieldByName('bauprojekt').AsString);
cbx_ausw3.Items.Add(liteQuery1.FieldByName('bauort').AsString);
liteQuery1.Next;
end;
Who can help me?
Thanks Jmich