Autor Beitrag
Björn karpenstein
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 96

Windows XP, Linux
D7, K3
BeitragVerfasst: Fr 30.09.05 13:20 
Hallo!

Ich habe ein Formular mit einem AdoQuery1, was alle Kunden enthält. Ich instanziere ein Suchformular mit einem anderen Adoquery2, was mit einer WHERE-Einschränkung alle Kunden in einem DBGrid anzeigt, die auf die Suche zutreffen (also eine Untermenge von AdoQuery1).

Was ist die einfachste und effizienteste Möglichkeit AdoQuery1 auf den ausgewählten Kunden zeigen zu lassen? Eine Zuweisung?
Habs mal mit

ausblenden Delphi-Quelltext
1:
self.AdoQuery1 := frm.AdoQuery2					


versucht, aber da tut sich nichts. Wie macht Ihr das?

MfG

Björn Karpenstein


Moderiert von user profile iconChristian S.: Topic aus VCL (Visual Component Library) verschoben am Fr 30.09.2005 um 14:36
alzaimar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2889
Erhaltene Danke: 13

W2000, XP
D6E, BDS2006A, DevExpress
BeitragVerfasst: Fr 30.09.05 14:27 
ausblenden Delphi-Quelltext
1:
Adoquery1.locate('PrimaryKEYField',AdoQuery2['PrimaryKEYField'],[]);					

Wobei 'PrimaryKEYField' der Name eines eindeutigen Feldes (z.B. Autoinc) der Tabelle ist.

_________________
Na denn, dann. Bis dann, denn.
Björn karpenstein Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 96

Windows XP, Linux
D7, K3
BeitragVerfasst: Fr 30.09.05 17:24 
Vielen Dank alzamair :)