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

x
?
Solved

Very simple database problem

Posted on 1998-04-16
2
Medium Priority
?
163 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
[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
2 Comments
 
LVL 3

Accepted Solution

by:
KE earned 200 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

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 brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

670 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