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

Help with adding values in Access 1

Status
Not open for further replies.

3des

IS-IT--Management
Jul 28, 2003
5
0
0
US
I am attempting to create a simple expression that adds several seperate line items together. But the result is the value is each value listed togther, not the sum of them. Example sum1=1 sum2=1 sum3=1, my current addtion (=sum1+sum2+sum3)will give me the result of 111, what Im looking for is the result of 3.
 
You are concatenating strings, which is why you get '111' as your result. Either change your data types to numeric (Long) or use the Val() function e.g. =Val(sum1)+Val(sum2)+Val(sum3)
 
Norris68, Thank you for your assistance. The "Val" function worked perfectly. Thank again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top