Put a query value in a textbox controlsource

  • Thread starter Dsperry101 via AccessMonster.com
  • Start date
D

Dsperry101 via AccessMonster.com

Hey everyone,
I want to put a value from a query into the control source property of a
text box in a form. The value is "fldToday" and is a count of today's work
orders counted in query named "qryToday". The form already has a record
source assigned to another query and the field is in the contol source of
another text box. The help says I can use a value in a query but can't seem
to get the right string to get it to work . The query works when I run it and
returns the correct values.


Thanks ahead of time !!


Dan S
 
F

fredg

Hey everyone,
I want to put a value from a query into the control source property of a
text box in a form. The value is "fldToday" and is a count of today's work
orders counted in query named "qryToday". The form already has a record
source assigned to another query and the field is in the contol source of
another text box. The help says I can use a value in a query but can't seem
to get the right string to get it to work . The query works when I run it and
returns the correct values.

Thanks ahead of time !!

Dan S

The query returns just the 1 value?
Use an unbound text control.

=DLookUp("[fldToday]","qryToday")
 

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