Subquery in a textbox's control source

G

George

Hi folks,

Is it possible to use a subquery in the control source of a text box to
display a value based on results in a form?

Hope this makes sense

George
 
6

'69 Camaro

Hi, George.

No. It must be an actual query (which can contain subqueries) or a valid
expression. Perhaps you could elaborate on what you're trying to narrow down
to display in the text box?

P.S.
http://www.microsoft.com/office/com...b79d&cid=8bf00411-cc14-435f-b449-7a979aaac7f0

HTH.
Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips.

(Please remove ZERO_SPAM from my reply E-mail address so that a message will
be forwarded to me.)
- - -
If my answer has helped you, please sign in and answer yes to the question
"Did this post answer your question?" at the bottom of the message, which
adds your question and the answers to the database of answers. Remember that
questions answered the quickest are often from those who have a history of
rewarding the contributors who have taken the time to answer questions
correctly.
 
G

George

Hi Gunny.

Based on a value on a report (eg £10,000) I want to Identify the amount of
comission to pay to an adviser. EG, if the value is 10,000, commision = 50;
15,000 then commision = 75 etc. DLookup will not work (I don't think) as I
need to test against two values. My SQL looks a bit like this:

SELECT commissionAmount
FROM payScale
WHERE lowerLimit>[myVariableValue] and upperLimit<[myVariableValue]

Hope that makes a bit of sense!

George
 
Top