Forms summing

  • Thread starter Thread starter Dave
  • Start date Start date
D

Dave

I have a popup form with 5 text Boxes
RedCount
WhiteCount
YellowCount
PurpleCount

txtTotal

I want to sum the first 4 boxes in the 5th
Why is this not working?
=[RedCount]+[YellowCount]+[WhiteCount]+[PurpleCount]
Or
=sum([RedCount]+[YellowCount]+[WhiteCount]+[PurpleCount])
In the control source of txtTotal

All 5 boxes are formatted to be general number and first 4 have a default
value of 0
All I get is either "error" or "name" depending on what I try to put as my
code

Am I missing something?
Any help here will be appreciated

Thanks in advance

D
 
Odd because it works for me.

Having said that, you would need a very good reason to store the calculation
directly in the table. It is better to do it in a query.
 
None of these numbers are being stored.
they are 5 ubound text boxes.
D
scubadiver said:
Odd because it works for me.

Having said that, you would need a very good reason to store the
calculation
directly in the table. It is better to do it in a query.

--
www.ae911truth.org



Dave said:
I have a popup form with 5 text Boxes
RedCount
WhiteCount
YellowCount
PurpleCount

txtTotal

I want to sum the first 4 boxes in the 5th
Why is this not working?
=[RedCount]+[YellowCount]+[WhiteCount]+[PurpleCount]
Or
=sum([RedCount]+[YellowCount]+[WhiteCount]+[PurpleCount])
In the control source of txtTotal

All 5 boxes are formatted to be general number and first 4 have a default
value of 0
All I get is either "error" or "name" depending on what I try to put as
my
code

Am I missing something?
Any help here will be appreciated

Thanks in advance

D
 
You didn't say they were all unbound!

What do you want to do?


Dave said:
None of these numbers are being stored.
they are 5 ubound text boxes.
D
scubadiver said:
Odd because it works for me.

Having said that, you would need a very good reason to store the
calculation
directly in the table. It is better to do it in a query.

--
www.ae911truth.org



Dave said:
I have a popup form with 5 text Boxes
RedCount
WhiteCount
YellowCount
PurpleCount

txtTotal

I want to sum the first 4 boxes in the 5th
Why is this not working?
=[RedCount]+[YellowCount]+[WhiteCount]+[PurpleCount]
Or
=sum([RedCount]+[YellowCount]+[WhiteCount]+[PurpleCount])
In the control source of txtTotal

All 5 boxes are formatted to be general number and first 4 have a default
value of 0
All I get is either "error" or "name" depending on what I try to put as
my
code

Am I missing something?
Any help here will be appreciated

Thanks in advance

D
 
Sorry - you are correct (I did not mention that) and aftrer sleeping on it
for the night I think I came to understand that if they are unbound I can't
total them.
back to the drawing board.

Thanks for the replies
D
scubadiver said:
You didn't say they were all unbound!

What do you want to do?


Dave said:
None of these numbers are being stored.
they are 5 ubound text boxes.
D
scubadiver said:
Odd because it works for me.

Having said that, you would need a very good reason to store the
calculation
directly in the table. It is better to do it in a query.

--
www.ae911truth.org



:

I have a popup form with 5 text Boxes
RedCount
WhiteCount
YellowCount
PurpleCount

txtTotal

I want to sum the first 4 boxes in the 5th
Why is this not working?
=[RedCount]+[YellowCount]+[WhiteCount]+[PurpleCount]
Or
=sum([RedCount]+[YellowCount]+[WhiteCount]+[PurpleCount])
In the control source of txtTotal

All 5 boxes are formatted to be general number and first 4 have a
default
value of 0
All I get is either "error" or "name" depending on what I try to put
as
my
code

Am I missing something?
Any help here will be appreciated

Thanks in advance

D
 
What do you want to do?

--
www.ae911truth.org



Dave said:
Sorry - you are correct (I did not mention that) and aftrer sleeping on it
for the night I think I came to understand that if they are unbound I can't
total them.
back to the drawing board.

Thanks for the replies
D
scubadiver said:
You didn't say they were all unbound!

What do you want to do?


Dave said:
None of these numbers are being stored.
they are 5 ubound text boxes.
D

Odd because it works for me.

Having said that, you would need a very good reason to store the
calculation
directly in the table. It is better to do it in a query.

--
www.ae911truth.org



:

I have a popup form with 5 text Boxes
RedCount
WhiteCount
YellowCount
PurpleCount

txtTotal

I want to sum the first 4 boxes in the 5th
Why is this not working?
=[RedCount]+[YellowCount]+[WhiteCount]+[PurpleCount]
Or
=sum([RedCount]+[YellowCount]+[WhiteCount]+[PurpleCount])
In the control source of txtTotal

All 5 boxes are formatted to be general number and first 4 have a
default
value of 0
All I get is either "error" or "name" depending on what I try to put
as
my
code

Am I missing something?
Any help here will be appreciated

Thanks in advance

D
 

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

Similar Threads


Back
Top