Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Control source for an unbound textbox

Status
Not open for further replies.

NeilPattison

IS-IT--Management
Aug 24, 2005
52
GB

I have a form that uses a query as its control source. The problem I have is that on this form I have an unbound textbox that I need to show the result of another query in. I thought I could do this by using =[Query]![QueryName]![Field name] in its control source, but this isn't working.

What is the right way to go about this?

Cheers
 
Have a look at the DLookUp function.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Thanks for getting back quickly PH. I tried using

=Dlookup("[Field Name]","[Query Name]")

but it is just bringing up an error. Is this the right kind of format?
 
I've decided to change the way I'm doing this.

What I've done now is display the results of the query in a subform. What I'd like to do now is use the data on the subform in a calculation that takes place in a textbox on the main form. Is this possible and how do I reference it?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top