WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Creating Expression for Sum of two fields

 
Goto page 1, 2
   Home -> Office other -> Table Design RSS
Next:  Formula for pulling information  
Author Message
Nirav

External


Since: Sep 29, 2008
Posts: 7



(Msg. 1) Posted: Mon Sep 29, 2008 10:29 am
Post subject: Creating Expression for Sum of two fields
Archived from groups: microsoft>public>access>tablesdbdesign (more info?)

Hi All,

I am new userof access and I am creating a for where I have two fields.

Ex. Score A (Combobox - 0, 1 or 2)
Score B (Combobox - 0, 1 or 2)

Total Score (Text Box) - (I want to create expression here so total score
automatically can be sum of score A and Score B.

Please Help
Back to top
Login to vote
Dale Fye

External


Since: May 19, 2006
Posts: 468



(Msg. 2) Posted: Mon Sep 29, 2008 11:10 am
Post subject: RE: Creating Expression for Sum of two fields [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I'm assuming thisis on a form?

Try putting something like the following in the ControlSource property of
the text control that you want to display the sum in:

ControlSource: = NZ([Score A), 0) + NZ([Score B), 0)

--
HTH
Dale

Don''t forget to rate the post if it was helpful!

email address is invalid
Please reply to newsgroup only.



"Nirav" wrote:

> Hi All,
>
> I am new userof access and I am creating a for where I have two fields.
>
> Ex. Score A (Combobox - 0, 1 or 2)
> Score B (Combobox - 0, 1 or 2)
>
> Total Score (Text Box) - (I want to create expression here so total score
> automatically can be sum of score A and Score B.
>
> Please Help
Back to top
Login to vote
Nirav

External


Since: Sep 29, 2008
Posts: 7



(Msg. 3) Posted: Mon Sep 29, 2008 11:24 am
Post subject: RE: Creating Expression for Sum of two fields [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Yes this is a form but formula you gave is not working.

Could you please help me more?

"Dale Fye" wrote:

> I'm assuming thisis on a form?
>
> Try putting something like the following in the ControlSource property of
> the text control that you want to display the sum in:
>
> ControlSource: = NZ([Score A), 0) + NZ([Score B), 0)
>
> --
> HTH
> Dale
>
> Don''t forget to rate the post if it was helpful!
>
> email address is invalid
> Please reply to newsgroup only.
>
>
>
> "Nirav" wrote:
>
> > Hi All,
> >
> > I am new userof access and I am creating a for where I have two fields.
> >
> > Ex. Score A (Combobox - 0, 1 or 2)
> > Score B (Combobox - 0, 1 or 2)
> >
> > Total Score (Text Box) - (I want to create expression here so total score
> > automatically can be sum of score A and Score B.
> >
> > Please Help
Back to top
Login to vote
Duane Hookom

External


Since: Feb 07, 2005
Posts: 3294



(Msg. 4) Posted: Mon Sep 29, 2008 1:11 pm
Post subject: RE: Creating Expression for Sum of two fields [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

If Score A and Score B are your field names, you should be able to use:
= NZ([Score A], 0) + NZ([Score B], 0)
If this doesn't work, please come back with something more descriptive than
"is not working".

--
Duane Hookom
Microsoft Access MVP


"Nirav" wrote:

> Yes this is a form but formula you gave is not working.
>
> Could you please help me more?
>
> "Dale Fye" wrote:
>
> > I'm assuming thisis on a form?
> >
> > Try putting something like the following in the ControlSource property of
> > the text control that you want to display the sum in:
> >
> > ControlSource: = NZ([Score A), 0) + NZ([Score B), 0)
> >
> > --
> > HTH
> > Dale
> >
> > Don''t forget to rate the post if it was helpful!
> >
> > email address is invalid
> > Please reply to newsgroup only.
> >
> >
> >
> > "Nirav" wrote:
> >
> > > Hi All,
> > >
> > > I am new userof access and I am creating a for where I have two fields.
> > >
> > > Ex. Score A (Combobox - 0, 1 or 2)
> > > Score B (Combobox - 0, 1 or 2)
> > >
> > > Total Score (Text Box) - (I want to create expression here so total score
> > > automatically can be sum of score A and Score B.
> > >
> > > Please Help
Back to top
Login to vote
Dale Fye

External


Since: May 19, 2006
Posts: 468



(Msg. 5) Posted: Mon Sep 29, 2008 1:24 pm
Post subject: RE: Creating Expression for Sum of two fields [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Sorry,

I dropped the right brackets "]" from the field names, should read [Score
A] and [Score B], assuming those are field names.

--
HTH
Dale

Don''t forget to rate the post if it was helpful!

email address is invalid
Please reply to newsgroup only.



"Dale Fye" wrote:

> I'm assuming thisis on a form?
>
> Try putting something like the following in the ControlSource property of
> the text control that you want to display the sum in:
>
> ControlSource: = NZ([Score A), 0) + NZ([Score B), 0)
>
> --
> HTH
> Dale
>
> Don''t forget to rate the post if it was helpful!
>
> email address is invalid
> Please reply to newsgroup only.
>
>
>
> "Nirav" wrote:
>
> > Hi All,
> >
> > I am new userof access and I am creating a for where I have two fields.
> >
> > Ex. Score A (Combobox - 0, 1 or 2)
> > Score B (Combobox - 0, 1 or 2)
> >
> > Total Score (Text Box) - (I want to create expression here so total score
> > automatically can be sum of score A and Score B.
> >
> > Please Help
Back to top
Login to vote
Nirav

External


Since: Sep 29, 2008
Posts: 7



(Msg. 6) Posted: Tue Sep 30, 2008 9:26 am
Post subject: RE: Creating Expression for Sum of two fields [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Dear,

I tried this formula but it is not working. Let me explain....

My "Score A" field shows value of "2" and "Score B" field shows value of
"3", so instead of answer "5" (ex. 2+3) it gives me answer "23".

Please help.

"Duane Hookom" wrote:

> If Score A and Score B are your field names, you should be able to use:
> = NZ([Score A], 0) + NZ([Score B], 0)
> If this doesn't work, please come back with something more descriptive than
> "is not working".
>
> --
> Duane Hookom
> Microsoft Access MVP
>
>
> "Nirav" wrote:
>
> > Yes this is a form but formula you gave is not working.
> >
> > Could you please help me more?
> >
> > "Dale Fye" wrote:
> >
> > > I'm assuming thisis on a form?
> > >
> > > Try putting something like the following in the ControlSource property of
> > > the text control that you want to display the sum in:
> > >
> > > ControlSource: = NZ([Score A), 0) + NZ([Score B), 0)
> > >
> > > --
> > > HTH
> > > Dale
> > >
> > > Don''t forget to rate the post if it was helpful!
> > >
> > > email address is invalid
> > > Please reply to newsgroup only.
> > >
> > >
> > >
> > > "Nirav" wrote:
> > >
> > > > Hi All,
> > > >
> > > > I am new userof access and I am creating a for where I have two fields.
> > > >
> > > > Ex. Score A (Combobox - 0, 1 or 2)
> > > > Score B (Combobox - 0, 1 or 2)
> > > >
> > > > Total Score (Text Box) - (I want to create expression here so total score
> > > > automatically can be sum of score A and Score B.
> > > >
> > > > Please Help
Back to top
Login to vote
Dale Fye

External


Since: May 19, 2006
Posts: 468



(Msg. 7) Posted: Tue Sep 30, 2008 9:35 am
Post subject: RE: Creating Expression for Sum of two fields [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

So, are these combo boxes bound to fields in your table, or are they
unbound? If they are bound, then what are the field names?

Assuming that you have two combo boxes, named (cboScoreA and cboScoreB)

Then try:

= val(NZ(me.cboScoreA, 0)) + val(NZ(me.cboScoreB, 0))



--
HTH
Dale

Don''t forget to rate the post if it was helpful!

email address is invalid
Please reply to newsgroup only.



"Nirav" wrote:

> Dear,
>
> I tried this formula but it is not working. Let me explain....
>
> My "Score A" field shows value of "2" and "Score B" field shows value of
> "3", so instead of answer "5" (ex. 2+3) it gives me answer "23".
>
> Please help.
>
> "Duane Hookom" wrote:
>
> > If Score A and Score B are your field names, you should be able to use:
> > = NZ([Score A], 0) + NZ([Score B], 0)
> > If this doesn't work, please come back with something more descriptive than
> > "is not working".
> >
> > --
> > Duane Hookom
> > Microsoft Access MVP
> >
> >
> > "Nirav" wrote:
> >
> > > Yes this is a form but formula you gave is not working.
> > >
> > > Could you please help me more?
> > >
> > > "Dale Fye" wrote:
> > >
> > > > I'm assuming thisis on a form?
> > > >
> > > > Try putting something like the following in the ControlSource property of
> > > > the text control that you want to display the sum in:
> > > >
> > > > ControlSource: = NZ([Score A), 0) + NZ([Score B), 0)
> > > >
> > > > --
> > > > HTH
> > > > Dale
> > > >
> > > > Don''t forget to rate the post if it was helpful!
> > > >
> > > > email address is invalid
> > > > Please reply to newsgroup only.
> > > >
> > > >
> > > >
> > > > "Nirav" wrote:
> > > >
> > > > > Hi All,
> > > > >
> > > > > I am new userof access and I am creating a for where I have two fields.
> > > > >
> > > > > Ex. Score A (Combobox - 0, 1 or 2)
> > > > > Score B (Combobox - 0, 1 or 2)
> > > > >
> > > > > Total Score (Text Box) - (I want to create expression here so total score
> > > > > automatically can be sum of score A and Score B.
> > > > >
> > > > > Please Help
Back to top
Login to vote
Nirav

External


Since: Sep 29, 2008
Posts: 7



(Msg. 8) Posted: Tue Sep 30, 2008 9:51 am
Post subject: RE: Creating Expression for Sum of two fields [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Dear,

The formula is not working.

It says that The Object doesn't contain the Automation object 'me'.

Please suggest.

"Dale Fye" wrote:

>
> So, are these combo boxes bound to fields in your table, or are they
> unbound? If they are bound, then what are the field names?
>
> Assuming that you have two combo boxes, named (cboScoreA and cboScoreB)
>
> Then try:
>
> = val(NZ(me.cboScoreA, 0)) + val(NZ(me.cboScoreB, 0))
>
>
>
> --
> HTH
> Dale
>
> Don''t forget to rate the post if it was helpful!
>
> email address is invalid
> Please reply to newsgroup only.
>
>
>
> "Nirav" wrote:
>
> > Dear,
> >
> > I tried this formula but it is not working. Let me explain....
> >
> > My "Score A" field shows value of "2" and "Score B" field shows value of
> > "3", so instead of answer "5" (ex. 2+3) it gives me answer "23".
> >
> > Please help.
> >
> > "Duane Hookom" wrote:
> >
> > > If Score A and Score B are your field names, you should be able to use:
> > > = NZ([Score A], 0) + NZ([Score B], 0)
> > > If this doesn't work, please come back with something more descriptive than
> > > "is not working".
> > >
> > > --
> > > Duane Hookom
> > > Microsoft Access MVP
> > >
> > >
> > > "Nirav" wrote:
> > >
> > > > Yes this is a form but formula you gave is not working.
> > > >
> > > > Could you please help me more?
> > > >
> > > > "Dale Fye" wrote:
> > > >
> > > > > I'm assuming thisis on a form?
> > > > >
> > > > > Try putting something like the following in the ControlSource property of
> > > > > the text control that you want to display the sum in:
> > > > >
> > > > > ControlSource: = NZ([Score A), 0) + NZ([Score B), 0)
> > > > >
> > > > > --
> > > > > HTH
> > > > > Dale
> > > > >
> > > > > Don''t forget to rate the post if it was helpful!
> > > > >
> > > > > email address is invalid
> > > > > Please reply to newsgroup only.
> > > > >
> > > > >
> > > > >
> > > > > "Nirav" wrote:
> > > > >
> > > > > > Hi All,
> > > > > >
> > > > > > I am new userof access and I am creating a for where I have two fields.
> > > > > >
> > > > > > Ex. Score A (Combobox - 0, 1 or 2)
> > > > > > Score B (Combobox - 0, 1 or 2)
> > > > > >
> > > > > > Total Score (Text Box) - (I want to create expression here so total score
> > > > > > automatically can be sum of score A and Score B.
> > > > > >
> > > > > > Please Help
Back to top
Login to vote
Display posts from previous:   
       Home -> Office other -> Table Design All times are: Eastern Time (US & Canada) (change)
Goto page 1, 2
Page 1 of 2

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
 Office
  Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET