Solved

Very simple database problem

Posted on 1998-04-16
2
149 Views
Last Modified: 2010-04-06
When I have a TQuery object with one parameter, how can I use one Field of a record in a TTable as the parameter for this?  I mean, when a TDBGrid's selected record changes, one of the fields of that record has to be passed as parameter to this TQuery object.

Thanks
0
Comment
Question by:Odie
2 Comments
 
LVL 3

Accepted Solution

by:
KE earned 50 total points
ID: 1361614
Set the DataSource property of your query to point at the DataSource for your table.
Write the query SQL like this:
SELECT XXX FROM MYTABLE WHERE XXX=:FIELDNAMEOFTHETABLE

0
 
LVL 1

Author Comment

by:Odie
ID: 1361615
Thanks
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
A short film showing how OnPage and Connectwise integration works.

932 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now