If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Attach a query to an Unbound text box
Is it possible to write an expression from a query in an unbound text box
when the form is set to a table or another query? I have a form where the record source is set to qry production. I want to create an unbound text box where the control source is an expression pulling from another query. Here is the expression;=[qry KRP baseline]![Devanning]. I am receiving a #NAME? error. |
#2
|
|||
|
|||
Attach a query to an Unbound text box
On Tue, 3 Oct 2006 17:13:01 -0700, Rob
wrote: Is it possible to write an expression from a query in an unbound text box when the form is set to a table or another query? Not directly. You need to use either a Subform, or if there's just one field, use DLookUp. I have a form where the record source is set to qry production. I want to create an unbound text box where the control source is an expression pulling from another query. Here is the expression;=[qry KRP baseline]![Devanning]. I am receiving a #NAME? error. Try =DLookUp("Devanning", "[qry KRP Baseline]", "optional parameters") The parameters are needed if the query returns multiple records. John W. Vinson[MVP] |
#3
|
|||
|
|||
Attach a query to an Unbound text box
It worked!! Thank you!!!
"John Vinson" wrote: On Tue, 3 Oct 2006 17:13:01 -0700, Rob wrote: Is it possible to write an expression from a query in an unbound text box when the form is set to a table or another query? Not directly. You need to use either a Subform, or if there's just one field, use DLookUp. I have a form where the record source is set to qry production. I want to create an unbound text box where the control source is an expression pulling from another query. Here is the expression;=[qry KRP baseline]![Devanning]. I am receiving a #NAME? error. Try =DLookUp("Devanning", "[qry KRP Baseline]", "optional parameters") The parameters are needed if the query returns multiple records. John W. Vinson[MVP] |
Thread Tools | |
Display Modes | |
|
|