![]() |
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:
Das Feld "Stationsnamen" ist natürlich nich in der Tabelle LMW enthalten.
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'; Vielen dank schon mal in vorraus. Pet04 |
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 23:58 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz