Solved

Very simple database problem

Posted on 1998-04-16
2
154 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

839 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