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

Win Xp Home
delphi 2005
BeitragVerfasst: Mi 04.10.06 19:15 
Hallo
Ich hab ne access Datenbank mit ner tabelle in der ich ein aj nei Feld habe.
wie kann ich nun dieses Feld mit nem Query abfragen?
z.b:
SELECT * FROM tabelle WHERE erledigt = True

das geht ja wohl nicht :-)

in Acces is das ja ei JA/Nein Feld weis wer wie das richtig funktioniert ?
gruß

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


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Mi 04.10.06 19:28 
Versuch mal
ausblenden SQL-Anweisung
1:
SELECT * FROM tabelle WHERE erledigt = .T.					

_________________
Markus Kinzler.
der Berliner Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 417

Win Xp Home
delphi 2005
BeitragVerfasst: Mi 04.10.06 19:34 
Hi
Da kommt -fehlender Operator-.
Gruß

EDIT: Prob gelöst lag an einem fehlenden Leerzeichen hinter True.

Danke trotzdem

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


Zuletzt bearbeitet von der Berliner am Mi 04.10.06 19:37, insgesamt 1-mal bearbeitet
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Mi 04.10.06 19:35 
ausblenden SQL-Anweisung
1:
SELECT * FROM tabelle WHERE erledigt = 'True';					


oder

ausblenden SQL-Anweisung
1:
SELECT * FROM tabelle WHERE erledigt = 1;					


oder

ausblenden SQL-Anweisung
1:
SELECT * FROM tabelle WHERE erledigt;					

_________________
Markus Kinzler.