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!

Need to add values in a row

Status
Not open for further replies.

4281967

MIS
Oct 14, 2005
74
US
I have 12 columns named JAN to DEC.
On a report I want to add these values together. I tried placing a textbox out to the side and use this as the control source:
=[JAN]+[FEB]+[MAR]+[APR]+[MAY]+[JUN]+[JUL]+[AUG]+[SEP]+[OCT]+[NOV]+[DEC]
But that just concatenates the values together.

I also tried
=sum([JAN]+[FEB]+[MAR]+[APR]+[MAY]+[JUN]+[JUL]+[AUG]+[SEP]+[OCT]+[NOV]+[DEC])
that didn't work either.
 
I need to mention that the JAN-DEC colummns are made from a query....
 
What is the SQL view of the query?
If the numeric values are being concatenated rather than added, you can wrap each month in Val() like:
=Val([JAN])+Val([Feb])...
I expect there might be an easier method in your query.

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top