A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

#Name? Error - On text box



 
 
Thread Tools Display Modes
  #1  
Old June 5th, 2008, 05:46 PM posted to microsoft.public.access.forms
iholder
external usenet poster
 
Posts: 17
Default #Name? Error - On text box

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


  #2  
Old June 5th, 2008, 05:52 PM posted to microsoft.public.access.forms
Douglas J. Steele
external usenet poster
 
Posts: 9,313
Default #Name? Error - On text box

"iholder" wrote in message
...
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)

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)



  #3  
Old June 5th, 2008, 07:18 PM posted to microsoft.public.access.forms
iholder
external usenet poster
 
Posts: 17
Default #Name? Error - On text box

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

Ileana

"Douglas J. Steele" wrote:

"iholder" wrote in message
...
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)

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:57 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.