totaling dsum controls

B

binny

I have 2 calulated controls on a form with Dsums in them how do I add them
together when one is null
some times control A is null, some times contol B is null and some times
both controls have a value

I want to hide controls A & B just show a single total in contol C
 
K

KARL DEWEY

Use the NZ function like this ---
Nz(DSum(xyz,fre,fty), 0) + Nz(DSum(abc,def,jkl), 0)
 
J

John W. Vinson

I have 2 calulated controls on a form with Dsums in them how do I add them
together when one is null
some times control A is null, some times contol B is null and some times
both controls have a value

I want to hide controls A & B just show a single total in contol C

Set the control source of control C to

=NZ([A], 0) + NZ(, 0)
 
B

binny

thanks guys you could read the help files for a month and still not work some
of this stuff out by your self.
--
binny


John W. Vinson said:
I have 2 calulated controls on a form with Dsums in them how do I add them
together when one is null
some times control A is null, some times contol B is null and some times
both controls have a value

I want to hide controls A & B just show a single total in contol C

Set the control source of control C to

=NZ([A], 0) + NZ(, 0)
 

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