Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Werkzeuge (https://www.delphipraxis.net/63-sonstige-werkzeuge/)
-   -   Fastreport und SQL Select abfrage (https://www.delphipraxis.net/171314-fastreport-und-sql-select-abfrage.html)

Pet04 31. Okt 2012 07:58

Fastreport und SQL Select abfrage
 
Hallo zusammen,

ich habe folgendes Problem.
Ich lese aus einigen Tabellen die Werte aus und möchte sie nach Fastreport übergeben.
Dies klappt aus soweit, aber wie kann ich meine Stationsnamen zu fastreport übergeben.



Code:
SQL.Text := 'select Buerste,' +
                  '(select Stationsname from Stations_def where '+
                  'Stations_def.Station_Typ = '+
                  '(select Station_typ from Stationsanordnung where '+
                  'Stationsanordnung.Station_Nr = LMW.Station_Nr and '+
                  'Stationsanordnung.Anlagen_Nr = LMW.Anlagen_Nr)'+
                  ') As Stationsname, '+
                  'Buerstentyp, SP1, SP2, SP3, SP4, SP5, Min_Wert,'+
                  'Max_Wert, Anz_MWerte, Station_Nr '+
                  'from LMW where Anlagen_Nr = :VAnlage';
Das Feld "Stationsnamen" ist natürlich nich in der Tabelle LMW enthalten.

Vielen dank schon mal in vorraus.

Pet04

Union 1. Nov 2012 15:25

AW: Fastreport und SQL Select abfrage
 
Falls die Felder neu hinzugefügt wurden, solltest Du mal den Button "Update" in dem verbundenen TfrxDBDataSet betätigen.


Alle Zeitangaben in WEZ +1. Es ist jetzt 13:49 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz