Autor Beitrag
D. Annies
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 1843

windows 7
D6 Enterprise, D7 Pers und TD 2006
BeitragVerfasst: Di 26.02.08 20:10 
Hi, Delpher,

zugegeben, der String ist sehr lang, aber wer kann mir helfen, den Fehler zu finden - ich sehe ihn nicht!

Die Fehlermeldung ist: Symbol-String nicht gefunden SymbolString B Zeilennummer 1

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
  with QBuecher do
  begin
    Close; SQL.Clear;
    SQL.Text := format('SELECT B.Klasse, B.Name, B.Vorname, B.Titel, BS.ISBN, A.KLK, S.Telefon ' +
                         'FROM "%s" B ',  [TbBuecher.tablename])+
                        format('"%s" A ', [TbAusleihsatz.tablename])+
                        format('"%s" BS ', [TbBuchstamm.tablename])+
                        format('"%s" S ', [TbSchueler.tablename])+
      ' where (B.KLASSE like ''5%'' or B.KLASSE like ''6%'' ' +
        ' or B.KLASSE like ''7%'' or B.KLASSE like ''8%'' ' +
        ' or B.KLASSE like ''9%'' or B.KLASSE like ''10%'') ' +
        ' and B.Titel = BS.Titel ' +
        ' and (B.Name = S.NAME) and (B.Vorname = S.Vorname) and (B.KLASSE = S.KLASSE) ' +
        ' and (B.Klasse = A.Klasse) ' +
      ' order by B.Klasse, B.Name, B.Vorname, B.TITEL, BS.ISBN, S.TELEFON, A.KLK';

    Open;


Etwas habe ich da wohl noch nicht richtig verstanden.
Vielen Dank für Hilfe,
Detlef

_________________
ut vires desint, tamen est laudanda voluntas
icho2099
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 101
Erhaltene Danke: 12

WIN XP, WIN 7, WIN 10
Delphi 6 Prof, Delphi 2005, FPC
BeitragVerfasst: Di 26.02.08 20:30 
muss es nicht Tablename Alias, statt Alias Tablename heißen ?
Und braucht's nicht auch Kommata dazwischen ?
D. Annies Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 1843

windows 7
D6 Enterprise, D7 Pers und TD 2006
BeitragVerfasst: Di 26.02.08 20:45 
Hi, icho2099,

du hast recht, es fehlten die Kommas dazwischen - so was blödes! (Betriebsblind...)

Der Rest war in Ordnung Dankeschön,
Detlef

_________________
ut vires desint, tamen est laudanda voluntas