PC Review


Reply
Thread Tools Rate Thread

Calculating values from two tables

 
 
=?Utf-8?B?TWljaGVsbGU=?=
Guest
Posts: n/a
 
      23rd Jun 2005
I have two tables Equipment and EquipmentRoom.

Table 1 - EquipmentRoom
Fields - Equipment Number, Qty on FP

Table 2 - Equipment
Fields - Equipment Number, Current Room Qty, Total Qty, Discrepancy

First - Calcuate the Qty on FP for each type of Equipment Number
Second - Have the Equipment Table Use this Sum for the Current Room Qty field
Third - Substract the Curren Room Qty field from the Total Qty field to be
updated in the Discrepancy field.

I thank you for your help!!

Michelle
 
Reply With Quote
 
 
 
 
Larry Linson
Guest
Posts: n/a
 
      24th Jun 2005
"Michelle" wrote

> I have two tables Equipment and EquipmentRoom.
>
> Table 1 - EquipmentRoom
> Fields - Equipment Number, Qty on FP
>
> Table 2 - Equipment
> Fields - Equipment Number, Current
> Room Qty, Total Qty, Discrepancy


> First - Calcuate the Qty on FP for each
> type of Equipment Number
> Second - Have the Equipment Table Use
> this Sum for the Current Room Qty field
> Third - Substract the Curren Room
> Qty field from the Total Qty field to be
> updated in the Discrepancy field.


> I thank you for your help!!


Maybe you should hold your thanks until you see the answer.

You need to rethink your table design. It is not good practice to keep
summations, particularly chains of summations, for information that you can,
and should, calculate just when you need it. It is one of the basics of
relational database design, but is also a good practice no matter how an
application's data is stored.

That will require some Table redesign, and creation of some Totals Queries.
I know that may be more immediate work, but it will pay off in the long run.

Larry Linson
Microsoft Access MVP


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Calculating quarterly values from YTD values ghetto_banjo Microsoft Access Queries 1 8th Apr 2010 01:19 PM
calculate values in an unlimited range of cells in a column WITHOUTalso calculating values that had previously been filtered AGAINST? yadang Microsoft Excel Misc 2 1st Oct 2009 06:18 PM
Calculating this month's values in report based on accumulated values krellingsen@gmail.com Microsoft Access Reports 1 30th Jun 2008 04:23 AM
Calculating from values in pivot tables =?Utf-8?B?T3dlbiBQZWNr?= Microsoft Excel Worksheet Functions 3 13th Sep 2007 03:31 PM
Calculating between tables =?Utf-8?B?U3RldmUgQQ==?= Microsoft Access 2 18th Feb 2005 01:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:57 AM.