S
StratfordWard
Hello: I have two queries I would like to join in access 2003 to create a
third query from which I can run a report or cut/paste into excel, etc.
Each query needs to be linked on on two fields, location and date, and for
any given locaiton and date combination, there can be zero to several
records. I have tried joining
these several different ways and even tried using an intermediary query
containing
only location and date to join each main query.
For example, Query1 contains fields called Location, Date, Item, and QtySold
and Query2 contains fields called Location, Date, PayType, and PayAmt. I
want to produce a query that displays each record from each query only once
BUT may have one or more records display for each location and date.
Results may look like this:
LOCATION, DATE, ITEM, QTYSOLD, PAYTYPE, PAYAMT
1,7/1/2008,9001,42,CASH,50.00
1,7/1/2008,,,CRED,75.00
2,7/2/2008,9001,30,CASH,50.00
2,7/2/2008,9002,40,,
Any help will be appreciated...thanks!
Stratford
third query from which I can run a report or cut/paste into excel, etc.
Each query needs to be linked on on two fields, location and date, and for
any given locaiton and date combination, there can be zero to several
records. I have tried joining
these several different ways and even tried using an intermediary query
containing
only location and date to join each main query.
For example, Query1 contains fields called Location, Date, Item, and QtySold
and Query2 contains fields called Location, Date, PayType, and PayAmt. I
want to produce a query that displays each record from each query only once
BUT may have one or more records display for each location and date.
Results may look like this:
LOCATION, DATE, ITEM, QTYSOLD, PAYTYPE, PAYAMT
1,7/1/2008,9001,42,CASH,50.00
1,7/1/2008,,,CRED,75.00
2,7/2/2008,9001,30,CASH,50.00
2,7/2/2008,9002,40,,
Any help will be appreciated...thanks!
Stratford