Autor Beitrag
Svenkan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 55

WinXP
Delphi 7 Enterprise
BeitragVerfasst: So 13.05.07 17:37 
Ich benötige aus einer Tabelle z.B. die Spalte 'FACH'. Ich rufe die Tabelle über Query2 ab.
Wie komme ich nun an die Spalte ran?

/edit: Habs schon!
patrick dee
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 311

Win 98SE, WinXP
D3,D6
BeitragVerfasst: Di 22.05.07 15:43 
Hi

wenn ich es richtig verstanden habe so :

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
begin
Query2.SQL.Clear;
Query2.SQL.Add('Select * FROM DEIN_db_Name where FACH Like ' + #39#37 + edit1.text + #37#39 );
 Query2.open;
end;


gruß

Patrick

_________________
Glauben heißt nichts wissen ...
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Di 22.05.07 15:48 
Eher mit
ausblenden Delphi-Quelltext
1:
   Query2.FieldByName('FACH').Value					

_________________
Markus Kinzler.