Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

TQuery Record Movement

Posted on 1999-07-21
5
Medium Priority
?
250 Views
Last Modified: 2012-05-04
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
0
Comment
Question by:RBertora
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 27

Expert Comment

by:kretzschmar
ID: 1390143
hi rob,

use locate instead

meikl ;-)
0
 
LVL 7

Author Comment

by:RBertora
ID: 1390144
Checking it out...
0
 
LVL 7

Author Comment

by:RBertora
ID: 1390145
Full marks meikl , post an answer!
0
 
LVL 27

Accepted Solution

by:
kretzschmar earned 240 total points
ID: 1390146
hi rob,

glad that this helps you,
good luck again

meikl ;-)
0
 
LVL 7

Author Comment

by:RBertora
ID: 1390147
It is a pleasure :)
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question