Autor Beitrag
Krischa
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 118

Windows 7 64 Bit
Delphi 2007
BeitragVerfasst: Di 19.05.09 12:54 
Hallo,
ich bekomme eine Fehlermeldung bei einer Selectabfrage und weiß nicht warum.

ausblenden Delphi-Quelltext
1:
query1.SQL.Text:='SELECT KUNR FROM '+kun+' WHERE AKZ="S"';					

Fehlermeldung: Ungültigesschlüsselwort, Symbol-String: ?, Zeilennummer: 1

Die der Pfad zur Datenbank stimmt und auch den Spaltenname gibt es.
Ein Stück weiter oben im Quellcode klappt noch alles nur hier geht es nicht mehr.
ausblenden Delphi-Quelltext
1:
query1.SQL.Text:='SELECT LWAP FROM '+hpfad+' WHERE DATEI="MZE"';					

Hier ist noch alles in Ordnung.

Danke für die Hilfe.

Moderiert von user profile iconKha: Delphi-Tags hinzugefügt


Zuletzt bearbeitet von Krischa am Mi 20.05.09 07:59, insgesamt 1-mal bearbeitet
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Di 19.05.09 12:58 
xkcd.com/327/

Was steht denn in kun drin?

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10184
Erhaltene Danke: 1259

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Di 19.05.09 15:56 
Moin!

Bitte ändere den Titel des Topics, da er wenig über das eigentlich Thema verrät. Hier der entsprechende Absatz aus den Richtlinien:
1.2 Beiträge:
Bitte formuliere den Betreff Deiner Beiträge so, dass andere Mitglieder anhand dieser bereits das eigentliche Thema festmachen können. Beiträge wie etwa "Eine Anfängerfrage" oder "Weiß jemand, wie das geht?" lassen den Leser im Unklaren darüber, was das Thema der Diskussion ist.[...]
Einfach oben bei Deinem ersten Beitrag auf user defined image oder user defined image klicken und den Titel ändern. Danke Dir!

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
Krischa Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 118

Windows 7 64 Bit
Delphi 2007
BeitragVerfasst: Mi 20.05.09 08:00 
Im kun steht die Adresse der Datenbank drin. Also C:\....\datenbank.db
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Mi 20.05.09 08:51 
Bei FROM kommt nicht der Dateiname der Tabelle, sondern der Name des Tabellen-Objektes hin. Den Pfad zur Datenbank legst Du über die Datenbank-Verbindung fest (Da wo Du den Treiber konfigurierst).

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.