QUERY VALUE TO TEXT BOX

R

Rpettis31

I AM BRAIN DEAD AND IT HAS BEEN AWHILE SINCE I HAVE DONE ANYTHING IN ACCESS.
I have a query that sums up receipts and I would like to display that value
on a text box on my form (txtTotalOH).

I tried to set the control source to the query but I am getting a #Name?
error.
 
V

vanderghast

If the FORM has already its *RecordSource* property set to something else
than the query, the easiest way to get the data out of the query is to
assign the ControlSource to a DLookup:

=DLookup("SumOf...", "queryName")


Vanderghast, Access MVP
 

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