473,412 Members | 2,599 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

MS Access Multiplication problem ...

Irshad Arose
Hello There , I find it hard to do this , I have created a table in which I have a Unit Cost field,QTY field, and a Total Cost Field . What I want is to when I type the quantity in the QTY field and the Unit Cost I want the Total Cost to be auto Generated how do I do this. Please help. Thank you
AJ
Attached Images
File Type: jpg Order table.jpg (16.1 KB, 175 views)
Dec 2 '10 #1
3 2090
Stewart Ross
2,545 Expert Mod 2GB
Hi. A basic principle is that you should never store a value which can be derived from what you already have. In other words, you don't need to STORE a total when you can CALCULATE that total given the quantity and unit cost (although you will also need to know any tax rates which are applicable before coming up with a definitive total for that item).

Should you still wish to store the total, even though you really should not do so, you can use the After Update event of the quantity and unit cost controls to calculate the total and place the result into your totals field.

-Stewart
Dec 2 '10 #2
Thank you for your kind response , but I have to be totally frank with you I am a fresher and really don't understand what you said if you can kindly mention me the way I am supposed to do it, it will help me a lot sorry for bothering you. I truly don't understand as I am new to Access yet I have this assignment to complete in order to get an entrance to the college. Thank you once again for you kind response and for the time you took to reply. may god bless you .... (BTW I am a student and desperately in need of assistance and advice from experts and thank you and thanks byte.com )

Irshad
AJ
Dec 2 '10 #3
Hello AJ. What you can do is create a query and let the query do the calculation. Your calculation will not be stored though. Use the query wizard then add the table. Then drag and drop the fields that you want to see on your query. Then go to a new blank space on the bottom of the screen where you just dropped the fields. Type the following. TotalValue: =[Unit Cost]*[Qty]. Save the query and when you enter data it should calculate the value for you. Or you can use the after update event if you have a form based on the underlying table. Let me know if you have a form then i can guide you throug the steps. Your values will be stored then. Good luck. Ryno
Dec 2 '10 #4

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

Similar topics

3
by: Mark Dickinson | last post by:
Can anyone either reproduce or explain the following apparently inconsistent behaviours of __add__ and __mul__? The class Gaussian provides a sub-bare-bones implementation of Gaussian integers (a...
54
by: Andy | last post by:
Hi, I don't know if this is the correct group to post this, but when I multiply a huge floating point value by a really small (non-zero) floating point value, I get 0 (zero) for the result. This...
9
by: Ralf Hildebrandt | last post by:
Hi all! First of all: I am a C-newbie. I have noticed a "strange" behavior with the standart integer multiplication. The code is: void main(void)
87
by: Vijay Kumar R Zanvar | last post by:
Hi, Why multiplication of pointers is not allowed? Till now I only know this, but not the reason why! PS: As a rule, I searched the FAQ, but could not find an answer. -- Vijay Kumar R...
17
by: Christopher Dyken | last post by:
Hi group, I'm trying to implement two routines to handle 32x32-bits and 64x64-bits signed integer multiplication on a 32 bits machine in C. It easy to find descriptions of non-signed...
5
by: Paul McGuire | last post by:
Does Python's run-time do any optimization of multiplication operations, like it does for boolean short-cutting? That is, for a product a*b, is there any shortcutting of (potentially expensive)...
11
by: mjdeesh_hi | last post by:
How can we perfom multiplication programatically without using + or * operator. Can any one help out in this one. Jagadeesh.
0
by: lituncse | last post by:
dear friends, i have come across a problem which is difficult to solve for me.it's about starssen's matrix multiplication.in general matrix multiplication we need 8 multiplications and 4 additions...
1
by: Sozos | last post by:
Hi guys. I have a problem with writing the base case for the following matrix multiplication function I have implemented. Please help. #define index(i,j,power) (((i)<<(power))+(j)) void...
0
by: ikilobo | last post by:
I was using GMP library for build an binary arithmetic, but for multiplication, I want to return a result a multiplication without carry.. How can I implementing it? nb: the code below give a...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.