How to make a field which has the SUM of other fields ?

Schorsch

Registered User.
Local time
Today, 18:46
Joined
Jun 20, 2002
Messages
42
Hi,

in my form I have 2 fields, minor errors and major errors, now I wanna make a field "entire errors", which consists of the sum of minor and major errors. How can I do this ?

P.S.: each error field bases on it's own table.

Thanks,
Schorsch
 
Each error field is based on it's own table? So are you just counting the total number of records in all of the fields?

I guess I don't understand the logic behind it.
 
edit: the errors are stored in one table
 
Last edited:
Place the following into the controlsource of the control that you want to display the total.
=MajorErrors + MinorErrors

If either field could contain a null value, you'll need to allow for that:
=Nz(MajorErrors,0) + Nz(MinorErrors,0)
 
it doesn't work, it shows me unbound, and when I open the form nothing is in the Enire_Errors field.

What's wrong ?
 
Did you use your own field names or the samples that I chose? Did you prefix the expression with the equal (=) sign?
 
You could post your code or we could continue to play guessing games.
 
Do In and Me contain text or numeric values? They should also be enclosed by the way
 
they contain only numbers.

what can I do ?

cu
Schorsch
 
IN and ME are both reserved words and therefore should not be used to name your user defined objects. Try the effect of surrounding the names with square brackets.

=Nz([IN],0) + Nz([ME],0)

Also, make sure that the name of the control is something other than [IN] or [ME].
 

Users who are viewing this thread

Back
Top Bottom