Autor Beitrag
cherry
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 136

WinXP - Professional
RAD Studio 2009
BeitragVerfasst: Di 05.07.05 13:04 
Hi Guys..

Prob:
Habe ein DBGrid das mir Einträge aus einer Datenbank anzeigt.
Erstelle ich einen Neuen Eintrag erscheint dieser schnell im Grid..
Wie aber schaffe ich es, den neuen Eintrag (höchste ID) gleich zu selektieren..

Habe dazu nichts gefunden, wenn schon was vorhanden ist, bitte ich um den Link.
THX schon mal

cheers cherry 8)
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Di 05.07.05 13:19 
Die Methode Locate sollte hier helfen.
cherry Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 136

WinXP - Professional
RAD Studio 2009
BeitragVerfasst: Di 05.07.05 13:38 
ausblenden Delphi-Quelltext
1:
2:
Datamodule1.ADOQuery5_kontakte.Locate
('kontakte_ID', Datamodule1.ADOQuery21_MaxKontaktmax.AsVariant ,[loCaseInsensitive]);


So hatts perfekt funktioniert.
Ich liebe diese Methode..

THX