RBertora
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
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
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
ASKER
Checking it out...
ASKER
Full marks meikl , post an answer!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It is a pleasure :)
use locate instead
meikl ;-)