PC Review


Reply
Thread Tools Rate Thread

Calculations in MS Access

 
 
reuben@gfi.com
Guest
Posts: n/a
 
      5th Dec 2006
Hi, I have 2 tables each having 3 fields - Product Name, Version and
Qty...but the Products are not the same. I need to Subtract Table 1
from Table 2 ie....If I want to check how much I have left from ITEMX,
then the database much search from table one for product ITEMX take its
QTY and subtract them from the QTY of ITEMX found in table 2...how can
I do this??? Can it be done?

Thanks.

 
Reply With Quote
 
 
 
 
Steve Schapel
Guest
Posts: n/a
 
      5th Dec 2006
Reuben,

Assuming the Product Name field is what can be used to uniquely identify
each record in both tables, and assuming you only want this process to
apply in cases where a Product appears in both tables, then... Make a
Query that includes both tables, and join them on the Product Name field
of each. Then, in the Field row of a blank column in the query design
grid, type somthing like this...
HowMuchLeft: [Table2].[Qty]-[Table1].[Qty]

Having said that, and without knowing much at all about your data, it
may be worth considering whather combining the data into a single table
may be a more appropriate design.

--
Steve Schapel, Microsoft Access MVP

(E-Mail Removed) wrote:
> Hi, I have 2 tables each having 3 fields - Product Name, Version and
> Qty...but the Products are not the same. I need to Subtract Table 1
> from Table 2 ie....If I want to check how much I have left from ITEMX,
> then the database much search from table one for product ITEMX take its
> QTY and subtract them from the QTY of ITEMX found in table 2...how can
> I do this??? Can it be done?
>
> Thanks.
>

 
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
How to do calculations in access Seema Microsoft Access Queries 3 1st Apr 2009 06:22 AM
Calculations in Access Alanclen Microsoft Access 3 18th Apr 2008 02:06 PM
Re: Calculations in MS Access Steve Schapel Microsoft Access Queries 0 5th Dec 2006 05:16 PM
calculations in Access =?Utf-8?B?c2x5Y2tl?= Microsoft Access Reports 3 1st Dec 2005 07:13 PM
calculations in access anonymous13549 Microsoft Access Reports 2 24th Mar 2004 04:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:50 PM.