Control Source

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a query that counts the number of items in a table. On a form I have
a txtbox to display that number. In the Control Source of the txtbox I have
the following code: =qryOffSitesActive!NumberOfOffSitesActive. I get the
#name. What am I missing??

Thanks In Advance!!!
 
I have a query that counts the number of items in a table. On a form I have
a txtbox to display that number. In the Control Source of the txtbox I have
the following code: =qryOffSitesActive!NumberOfOffSitesActive. I get the
#name. What am I missing??

Thanks In Advance!!!

The query returns just the one value?

=DLookUp("[NumberOfOffSitesActive]","qryOffSitesActive")

Make sure the name of this control is not "NumberOfOffSitesActive"
 

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

Back
Top