Autor Beitrag
Markos
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 67



BeitragVerfasst: So 06.02.05 18:45 
Ich möchte gerne mit einer SQL Abfrage datensätze filtern uns zwar ein bestimtes Feld deren Inhalt.

Access Datenbank:
Datansatz 1, Feld Name: XXX
Datensatz 2, Feld Name: YYY
Datensatz 3, Feld Name: YYY
Datensatz 4, Feld Name: ZZZ

Jetzt ich will ich mit einem SQL Query alle Datensätze mit diesem Feld in eine ComboBox schreiben. Das geht einwandfrei. Wie kann ich nun sagen, wenn etwas doppelt vorkommt soll er es nur einmal in die ComboBox schreiben ?

Als statt Auswahl ComboBox:
XXX
YYY
YYY
ZZZ

soll in der ComboBox stehen:

XXX
YYY
ZZZ

markos
CenBells
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1547

Win 7
Delphi XE5 Pro
BeitragVerfasst: So 06.02.05 19:25 
hallo,

probier es mal mit
ausblenden Quelltext
1:
select Distinct ...					


Gruß
Ken

_________________
Eine Klasse beschreibt die Struktur und das Verhalten einer Menge gleichartiger Objekte.