I have 4 fields R1, R2, R3, and R4 with a value of 0,1,or 2. Is there a way to have access automatically total these 4 fields in a field R5? Thanks in advance
Sorry to barge in, but it seems your textboxes contains text, and not numbers. So the result is a concatination of the text, and not the sum of the numbers.
Either go to the table and change from text to numbers, or do conversion. For instance, if those numbers cannot be negative and less den 255, try:
=cbyte(r1)+cbyte(r2)+cbyte(r3)+cbyte(r4)
For larger numbers cint, clng, for decimals csng, cdbl (check out the help on these functions)
Thanks, Yes that was my fault as I had not changed the properties of the boxes. Now it is working correctly adding up the values but how do I put that value (R5) into my table with all of the other values?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.