I am tring to run a simple addition calculation in a query, but all I get is errors. I am simply trying the formula below to add 4 fields (two of which are calculated in the same query), all of which are percent formatted. I think it has to do with a type mismatch error. To attempt to correct this, I even went back to the original tables and formatted the fields as general numbers to correct the problem, but that didn't work.
newfield=[field1]+[field2]+[field3]+[field4]
Oddly enough, if I multiply each field by 1 and then add them, the formula works.
newfield=(1*[field1])+(1*[field2])+(1*[field3])+(1*[field4])
Another odd thing, if I add only two or three of the fields, sometimes the addition works, sometimes it gives me an error, and sometimes it concatenates instead of adds! This depends upon which combination of fields I choose.
I would rather have the calculation run the correct way instead of having to tell everybody to multiply by one whenever a calculation is run off these fields.
I am using Access 7.0. Would I have this problem with a more updated version of Access?
newfield=[field1]+[field2]+[field3]+[field4]
Oddly enough, if I multiply each field by 1 and then add them, the formula works.
newfield=(1*[field1])+(1*[field2])+(1*[field3])+(1*[field4])
Another odd thing, if I add only two or three of the fields, sometimes the addition works, sometimes it gives me an error, and sometimes it concatenates instead of adds! This depends upon which combination of fields I choose.
I would rather have the calculation run the correct way instead of having to tell everybody to multiply by one whenever a calculation is run off these fields.
I am using Access 7.0. Would I have this problem with a more updated version of Access?