Autor Beitrag
der Berliner
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 417

Win Xp Home
delphi 2005
BeitragVerfasst: Mo 23.06.08 19:10 
Hallo zusammen,
Ich habe folgenden SQL String:
ausblenden Delphi-Quelltext
1:
'SELECT * FROM Modul1.Tbl_Material WHERE ID_Vorgang = '+IntToStr(Frm_Start.IDVorgang)					


und es kommt folgende Fehlermeldung:
Zitat:

Im Projekt Project2.exe ist eine Exception der Klasse ETdbSqlUnexpectedToken mit der Meldung '"<end of
statement>" expected at row 1, column 21.
"." found' aufgetreten.


Ich denke mal es liegt an dem punkt nach "Modul1", aber wie schreibt man das richtig ?
Modul1 ist ein Datenmodul welches im Formular auch eingebunden ist.

mfg
Andre

_________________
[b]Ich weiß nicht immer, wovon ich rede. Aber ich weiß, dass ich recht habe.[b]
Xentar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2077
Erhaltene Danke: 2

Win XP
Delphi 5 Ent., Delphi 2007 Prof
BeitragVerfasst: Mo 23.06.08 19:28 
Ne, das geht so nicht ;) Du kannst in dem SQL String nicht auf deine Delphi-Datenmodule zugreifen.

Was genau hast du denn vor? Also, wo trägst du diesen SQL String ein, was für eine Datenbank benutzt du, usw.
der Berliner Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 417

Win Xp Home
delphi 2005
BeitragVerfasst: Mo 23.06.08 19:39 
Hi
Also das hier zu erläutern würde glaube ich den Rahmen sprengen.
Als Datenbank habe ich hier TurboDB.
Ich versuch mal was:

mfg

_________________
[b]Ich weiß nicht immer, wovon ich rede. Aber ich weiß, dass ich recht habe.[b]
der Berliner Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 417

Win Xp Home
delphi 2005
BeitragVerfasst: Mo 23.06.08 19:54 
Hallo nochmal
Hab das ganze konstrukt jetzt in eine Procedure im Modul verpackt und greife vom Formular aus darauf zu.
das funktioniert.

danke trotzdem

mfg

_________________
[b]Ich weiß nicht immer, wovon ich rede. Aber ich weiß, dass ich recht habe.[b]