You just need the Field and the Query name:
Set the textbox to be
=DLOOKUP ("Field", "Query")
=DLOOKUP ("AvgOfTOTAL", "TOTALQRY")
A few DLOOKUP examples:
http://www.599cd.com/tips/access/dlookup-function/?key=AlexForum
=DLOOKUP (Field, Domain, Criteria)
=DLOOKUP ("LastName", "CustomerT"...