Link to home
Start Free TrialLog in
Avatar of RBertora
RBertoraFlag for United Kingdom of Great Britain and Northern Ireland

asked on

TQuery Record Movement

Hi,

I have a TQuery component on a form: 'select id,name from mytable'

Which feeds a dbgrid on the same form.


Now I want to perform something like this

 SetKey;
  FieldByName('id').AsString := 25;
 GotoNearest;

But these are methods for TTABLE, not TQuery...

A grade for a working answer.
The lowest grade without failing for answer that says this is not possible.

Rob
Avatar of kretzschmar
kretzschmar
Flag of Germany image

hi rob,

use locate instead

meikl ;-)
Avatar of RBertora

ASKER

Checking it out...
Full marks meikl , post an answer!
ASKER CERTIFIED SOLUTION
Avatar of kretzschmar
kretzschmar
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
It is a pleasure :)