I
Ian W.
Hello all, I'm new to access and having some difficulities. Any help I could
get I would really appricate.
I have two tables from which im trying to combine records.
I have 4 fields in each table.
They are: "Date", "ZipCode", "Weight", and "Cube"
I want to match on Date and Zip Code and sum at Weight and Cube for those
records that match.
For example:
If these were my tables:
TABLE 1
Date Zip Code Weight Cube
1/2 00001 2 3
1/2 00002 3 2
1/3 00003 1 2
1/3 00004 2 3
1/3 00005 2 1
TABLE 2
Date Zip Code Weight Cube
1/2 00006 2 3
1/2 00002 3 2
1/3 00003 1 2
1/3 00007 2 3
1/3 00008 2 1
I would want the query to return:
Date Zip Code Weight Cube
1/2 00002 6 4 (combined the 2nd record
from each table)
1/3 00003 2 4 (combined the 3nd record
from each table)
I have been succesful pulling records from one table that match another my
using relationships. However, I believe this is not pulling records from both
tables, only one; and using this method I can not sum the weight and cube
fields.
If you have any ideas or know how to do this you imput would be greatly
appricated. PLEAE help. Thanks in advance.
-Ian
get I would really appricate.
I have two tables from which im trying to combine records.
I have 4 fields in each table.
They are: "Date", "ZipCode", "Weight", and "Cube"
I want to match on Date and Zip Code and sum at Weight and Cube for those
records that match.
For example:
If these were my tables:
TABLE 1
Date Zip Code Weight Cube
1/2 00001 2 3
1/2 00002 3 2
1/3 00003 1 2
1/3 00004 2 3
1/3 00005 2 1
TABLE 2
Date Zip Code Weight Cube
1/2 00006 2 3
1/2 00002 3 2
1/3 00003 1 2
1/3 00007 2 3
1/3 00008 2 1
I would want the query to return:
Date Zip Code Weight Cube
1/2 00002 6 4 (combined the 2nd record
from each table)
1/3 00003 2 4 (combined the 3nd record
from each table)
I have been succesful pulling records from one table that match another my
using relationships. However, I believe this is not pulling records from both
tables, only one; and using this method I can not sum the weight and cube
fields.
If you have any ideas or know how to do this you imput would be greatly
appricated. PLEAE help. Thanks in advance.
-Ian