Autor Beitrag
delphimike
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 117



BeitragVerfasst: Mo 27.06.05 10:14 
Hallo

kann ich in einer Paradox Tabelle mehrere Datensätze auswählen die dann in einem DBGrid angezeigt werden. Die Funktion 'filter' schafft das ja irgendwie, ist aber nicht für alle Suchfunktionen geeignet.

Gruß Mike
direction4delphi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 84

WIN 95, WIN 98, WIN ME, WIN NT, WIN 2000, WIN XP, VISTA
D2 Prof, D4 Prof,D2005 Prof, Delphi4Php
BeitragVerfasst: Di 28.06.05 10:08 
Die flexibelst Möglichkeit stellt eine TQuery dar.
delphimike Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 117



BeitragVerfasst: Di 28.06.05 14:29 
das sehe ich im Prinzip ähnlich, habe nur mit Tquery keinerlei Erfahrung. Vermutlich läßt sie sich auch nicht so bequem in einem DBGrid darstellen
direction4delphi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 84

WIN 95, WIN 98, WIN ME, WIN NT, WIN 2000, WIN XP, VISTA
D2 Prof, D4 Prof,D2005 Prof, Delphi4Php
BeitragVerfasst: Di 28.06.05 15:59 
Doch geht ohne Probleme du weist der datasource die query und dem grid die source zu
delphimike Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 117



BeitragVerfasst: Di 28.06.05 16:11 
...werds probieren, danke
delphimike Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 117



BeitragVerfasst: Mi 29.06.05 10:42 
habs mir angeschaut doch leider werde ich nicht schlau aus der Query

Hättest Du einen Beispielcode wie ich z.B. eine Query fülle
mit z.B: Name='Müller' AND Ort ='Frankfurt'
daran scheitert es...

Gruß Mike
direction4delphi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 84

WIN 95, WIN 98, WIN ME, WIN NT, WIN 2000, WIN XP, VISTA
D2 Prof, D4 Prof,D2005 Prof, Delphi4Php
BeitragVerfasst: Mi 29.06.05 12:17 
Hier eine Query die LIKE verwendet dh es werden alle gefunden wo Name wie %Müller% und ORT wie %Frankfurt% du kannst auch den = Operator verwenden dann müssen aber die Platzhalter % weg

ausblenden Quelltext
1:
2:
3:
4:
kundensuche.Close;
kundensuche.SQL.clear;
kundensuche.SQL.ADD('SELECT Nummer,Name,Ort FROM Adresse WHERE (UPPER(Name) LIKE ''%'+ANSIUpperCase('Müller')+'%'' AND UPPER(Ort) LIKE ''%'+ANSIUpperCase('Frankfurt')+'%'') ');
kundensuche.open;



mfg
MILLI

Moderiert von user profile iconraziel: Code-Tags hinzugefügt.
delphimike Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 117



BeitragVerfasst: Do 30.06.05 15:47 
... eigentlich alles ganz einfach ...

Danke