Solved

Very simple database problem

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

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…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

747 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

9 Experts available now in Live!

Get 1:1 Help Now