473,513 Members | 6,210 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

I'm having some issues with math functions in MS Access

4 New Member
I'm trying to build a database for all our customers that includes a labor charge, service call charge, parts charge and a grand total. I'm pretty good in math, but to avoid errors, I'd like to make the grand total column automatically compute the sum of the previous three columns. Is this possible, and if so, please explain how to do it, and please, keep in mind that I've never used access in my life.
Jul 23 '10 #1
7 2189
Nieru Kitera
4 New Member
Oh, and I'm using Access 2000
Jul 23 '10 #2
slenish
283 Contributor
Hello,

first off this is possible, but you have to ask yourself a couple of questions. Are you trying to create this input - output to display on a form, print out in a report, show only on a table, or a combination of all the above?

If you can answer these questions it will help us to find a solution for you easier :)
Jul 23 '10 #3
Nieru Kitera
4 New Member
Just on the table. It's a very small database, only for repair customers. I actually have not built any reports or forms yet.
Jul 23 '10 #4
slenish
283 Contributor
Hello again,

Well it would be very long and confusing im sure if i explain how to do this so i just built a simple db for you to learn from. What i did was create a sample table with dummy numbers in it. Im guess that each field would contain money values, based on the types of fields you were using. Next i built a small query that runs a calculating expression to total up the numbers from your table.

you can play with the table and put in any dummy money amounts then save the table. Then all you have to do is open the query and it will calculate it for you.

I hope this helps.
Attached Files
File Type: zip TableCal.zip (10.9 KB, 101 views)
Jul 24 '10 #5
Nieru Kitera
4 New Member
Thanks, I think that will do the trick
Jul 24 '10 #6
slenish
283 Contributor
Your welcome :)
Jul 24 '10 #7
NeoPa
32,557 Recognized Expert Moderator MVP
Nieru,

You really don't want to store this value to your table as that would only be creating a rod for your own back (See Normalisation and Table structures for why).

Instead, simply use a query any time you need it and have the value worked out in the query. Something like :
Expand|Select|Wrap|Line Numbers
  1. TotVal: =[FieldA] + [FieldB] + [FieldC]
Jul 24 '10 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

17
3589
by: cwdjrxyz | last post by:
Javascript has a very small math function list. However there is no reason that this list can not be extended greatly. Speed is not an issue, unless you nest complicated calculations several levels...
1
1787
by: Lauren Wilson | last post by:
I'm having trouble with the Access VBA help on my installation of A2K with Dev tools. Every time I try to retrieve help for items listed in the Object Browser (and SOME other items as well),...
15
12208
by: Ingmar | last post by:
Simple comparison tests we have performed show that System.Math functions in C# are much slower than corresponding functions in C++. Extreme examples are System.Math.Exp() and System.Math.Tan(),...
22
3772
by: TC | last post by:
I have an Access database application with a lot of custom row functions written in VBA. In other words, a lot of queries contain calculated fields which use functions defined in the modules. I...
0
988
by: Mike | last post by:
can anyone explain to me why, given: decimal dec = 84.50M; Convert.ToInt32(dec).ToString() and Math.Round(dec,0).ToString() both correctly output "84"
4
1761
by: markaelkins | last post by:
In the code below I’m trying to figure out how to dynamically perform math functions in a form. To start, I would like to subtract TxtITotal.Text from TxtPTotal.Text and display the results in...
2
8880
by: kai | last post by:
Hi, How to find the list of SQL math functions in SQL Server 2005? Thanks Kai
4
3332
by: Ney André de Mello Zunino | last post by:
Hello. The following program: #include <list> #include <iterator> #include <algorithm> #include <cmath> #include <iostream>
17
2196
by: Chad | last post by:
I'm want static char *output; to hold the modified string "tel chad" However, when I debug it, static char *output holds the ascii value of the strng, and not the string itself. Here is...
5
1882
by: Nondisclosure007 | last post by:
Hello. If this is the wrong group for this, please let me know. I'll post it somewhere else. I've been doing data imports into MS Excel (ver 2007) and using the CORREL function. What I was...
0
7254
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7373
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7432
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7519
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5079
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3230
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3218
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
452
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.