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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I put the result of a count query into a form? 2

Status
Not open for further replies.

boysrus

Programmer
Jul 9, 2001
12
US
I want to put a count value into a form. I have created a query called qryOutLoanerCount. There are no groupings so it comes up with 1 count field called [CountOfUnits]. I am trying to show the value of this count field on my form. On the form, I have a text box with the Control Source set to: =[qryOutLoanerCount]![CountOfUnits]

However, when I look at the form in formview I only get: =Name?

Can anyone tell me what I am doing wrong?

 
Try this instead:

=DLookup("[CountOfUnits]","qryOutLoanerCount")

HTH Joe Miller
joe.miller@flotech.net
 
U can also draw a list box and adjust its size so that it looks like a text box and in its row source u can mention ur query :)

Cheers!
Aqif
 
Good idea aqif, I like that! Joe Miller
joe.miller@flotech.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top