#Name? Error - On text box

I

iholder

I am trying the bind a query to a text box source control. I am using the
Expression Builder to the following in the source control.

[qryLastBoxAssign]![MaxOfBoxNo] .


There is another query being used on the Form source control. Can two
different query be used on a form.

I am trying to pull a value from another query not on the Form source control.


Thank You
Ileana
 
D

Douglas J. Steele

iholder said:
I am trying the bind a query to a text box source control. I am using the
Expression Builder to the following in the source control.

[qryLastBoxAssign]![MaxOfBoxNo] .


There is another query being used on the Form source control. Can two
different query be used on a form.

I am trying to pull a value from another query not on the Form source
control.

You can't.

Instead, try setting the ControlSource property to:

=DLookup("[MaxOfBoxNo]", "[qryLastBoxAssign]")

(Including the equal sign)
 
I

iholder

Thank for the tip for future reference. It work just fine.

Ileana

Douglas J. Steele said:
iholder said:
I am trying the bind a query to a text box source control. I am using the
Expression Builder to the following in the source control.

[qryLastBoxAssign]![MaxOfBoxNo] .


There is another query being used on the Form source control. Can two
different query be used on a form.

I am trying to pull a value from another query not on the Form source
control.

You can't.

Instead, try setting the ControlSource property to:

=DLookup("[MaxOfBoxNo]", "[qryLastBoxAssign]")

(Including the equal sign)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top