Sumation

H

Henrikas

Hello. I have 1 problem. I want to sum fields of numbers where it is formated
by IIf sentences. Therefore it can not be done, because IIf sentence is
written in "control source" (table doesn't save that number) and it is
impossible to write it in "Default value", sum is always 0.
Let's say i have 500 fields with IIf sentence in it "IIf ([XXX]=True;
a*b;b*c)" . And i need to sum all those results. How to do that?
 
J

John W. Vinson

Hello. I have 1 problem. I want to sum fields of numbers where it is formated
by IIf sentences. Therefore it can not be done, because IIf sentence is
written in "control source" (table doesn't save that number) and it is
impossible to write it in "Default value", sum is always 0.
Let's say i have 500 fields with IIf sentence in it "IIf ([XXX]=True;
a*b;b*c)" . And i need to sum all those results. How to do that?

Put the IIF() statement *in a calculated field in a Query*, rather than in the
control source of a textbox on a form. You can then sum the calculated field
in the query.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top