A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Data calculation?



 
 
Thread Tools Display Modes
  #1  
Old August 25th, 2004, 03:23 PM
luke
external usenet poster
 
Posts: n/a
Default Data calculation?

Does anyone knows how to do data calculation in 'Access' " Forms." I want to
create 3 fields of data entries where the user input a numeric value in each
field and using the 4th fields for the calculation of the 3 data entriess.
My question is, how can I link the 3 fields of data together so that the 4th
field will output the right calculation?

Please Help! Thanks a bun.....

  #2  
Old August 25th, 2004, 03:33 PM
Rick B
external usenet poster
 
Posts: n/a
Default

Your "fourth field" would be an unbound text field. In it's Control Source
enter the formula you want.


= [SomeFieldName1] + [SomeFieldName2] + [SomeFieldName3]


Rick B


"luke" wrote in message
...
Does anyone knows how to do data calculation in 'Access' " Forms." I want
to
create 3 fields of data entries where the user input a numeric value in each
field and using the 4th fields for the calculation of the 3 data entriess.
My question is, how can I link the 3 fields of data together so that the 4th
field will output the right calculation?

Please Help! Thanks a bun.....


  #3  
Old August 25th, 2004, 03:37 PM
StCyrM
external usenet poster
 
Posts: n/a
Default

Good morning

In the Control Source of the Text Box in which to wish to assign the value,
simply place the following formula:

=NZ(txtBox1,0) + NZ(txtBox2,0) + NZ(txtBox3,0)

Hope this helps

Maurice St-Cyr

  #4  
Old August 25th, 2004, 05:29 PM
Locke
external usenet poster
 
Posts: n/a
Default

Thank a lot Guys

It works

by the way what is NZ mean after txbox1,0

"StCyrM" wrote:

Good morning

In the Control Source of the Text Box in which to wish to assign the value,
simply place the following formula:

=NZ(txtBox1,0) + NZ(txtBox2,0) + NZ(txtBox3,0)

Hope this helps

Maurice St-Cyr


  #5  
Old August 25th, 2004, 06:03 PM
Rick B
external usenet poster
 
Posts: n/a
Default

That tells access that if the value in one of your fields is nul, to replace
it with 0. Without that code, you might have received error messages
stating that you had an invalid use of nul. I'm glad Maurice suggested
that; it is the right way to do it.

Rick B


"Locke" wrote in message
...
Thank a lot Guys

It works

by the way what is NZ mean after txbox1,0

"StCyrM" wrote:

Good morning

In the Control Source of the Text Box in which to wish to assign the

value,
simply place the following formula:

=NZ(txtBox1,0) + NZ(txtBox2,0) + NZ(txtBox3,0)

Hope this helps

Maurice St-Cyr




  #6  
Old August 25th, 2004, 06:40 PM
StCyrM
external usenet poster
 
Posts: n/a
Default

Hi

The NZ function returns 0 when the evaluation is null.

You can lookup the NZ function in Help.

Best Regards

Maurice St-Cyr
Micro Systems Consultants, Inc.
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Queried Data alongside Manually entered data gwrose General Discussion 1 July 23rd, 2004 04:45 AM
Crosstab query in report Vincent DeLuca Setting Up & Running Reports 19 July 13th, 2004 04:02 AM
Problems with converting data held in an Excel spreadsheet to Word mark Gray Mailmerge 6 July 8th, 2004 10:54 AM
Having both the date and total of series data displayed underthe data Jon Peltier Charts and Charting 0 April 14th, 2004 08:39 PM
How to graph adjacent data in column? bmacwilliams Charts and Charting 1 December 17th, 2003 12:39 AM


All times are GMT +1. The time now is 11:43 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.