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

#Error

Status
Not open for further replies.

integritycare

Technical User
Mar 12, 2011
151
AU
Hi

How do you write the code for a currency text box when using "sum"
on a text box named InvTotal: on the Control Source

Code:
=sum([InvTotal])

 
You can't Sum() a text box. You can Sum() an expression based on the fields in the report's record source. For instance if the control source of InvTotal is:
Code:
=[Qty]*[UnitPrice]
You could use a text box in a report or group header or footer like:
Code:
=Sum([Qty]*[UnitPrice])


Duane
Hook'D on Access
MS Access MVP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top