Subtracting qty from a field on one table from qty used on another table 
Author Message
 Subtracting qty from a field on one table from qty used on another table

Here is the structure of the
database, as I have it.
Table1 "MasterInventory"
        HangerID (keyfield)
        Qty
Table2 "HangersPerJob"
        Index (keyfield)
        JobNumber
        HangerID
        QtyUsed
Table 3 "HangersOrdered"
        Index (keyfield"
        HangerID
        QtyRcvd
        PONumber

I have a one-to-many relationship from MasterInventory to HangerPerJob based
on the HangerID field. I also have a one-to-many relationship from
MasterInventory to HangersOrdered based on the HangerID field.

Both relationships are set to (#1, only include rows where the joined fields
from both tables are equal) they both have "enforce referential entegrity"
checked, "cascade update checked, "cascade delete checked.

I have a query "query1" that includes MasterInventory.Qty &
HangersPerJob.QtyUsed & MasterInventory.HangerID & HangersPerJob.HangerID
????? is this right????

My intention was to make two forms, one for entering records to the
HangersPerJob table, the second for entering records to the HangersOrdered
table.

The Hangers per job could have many different hangers per job#.

The question is how do I enter info into the second table and have it
subtract quantities from the first table based on the quantity used  in the
second table?
Help Please



Fri, 06 Jul 2001 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Adjusting Qty's in one table to another

2. Fill field in one table from field in another table

3. ListView: Qty Selected in Multiselect Mode

4. Help Help Need to copy a field from one table into another table

5. Copy fields from record in table A to record in table B using VBA

6. SQL - Join one table in one destination to another table in another destination (DBF)

7. using table field names after table connect

8. Create new fields in a table based off of fields in another table

9. Create new field in existing table exactly like field in second table

10. updating fields in table from field in another table

11. Eliminate records of one table based on another table record count

12. import from one table to many tables

 

 
Powered by phpBB® Forum Software