I work for a delivery company and need to combine the results of two queries into one dataset.
They are:
Delivery Query
1 - Center Number
2 - Vehicle Number
3 - Employee Name
4 - Data Date
5 - Sum of Delivery Packages
6 - Count of Delivery Stops
Pickup Query
1 - Center Number
2 - Vehicle Number
3 - Employee Name
4 - Data Date
5 - Sum of Pickup Packages
6 - Count of Pickup Stops
Each of these are fine on their own, but....there has to be a but...I want to combine both of these into one dataset which shows:
1 - Center Number
2 - Vehicle Number
3 - Employee Name
4 - Data Date
5 - Sum of Delivery Packages
6 - Count of Delivery Stops
7 - Sum of Pickup Packages
8 - Count of Pickup Stops
The problem is that using the relationships in Access I can only say, use the data from both tables that match, or use all the data from one and only those that match in the other. In this case, I want to combine the info and use all data from both tables. A vehicle may have deliveries and no pickups, or can have pickups and no deliveries. If I set the relationship up with one of the arrow join lines (for example from Delivery table to Pickup table), my dataset won't contain any information for a vehicle if it had pickups but no deliveries.
Hope this makes sense.
They are:
Delivery Query
1 - Center Number
2 - Vehicle Number
3 - Employee Name
4 - Data Date
5 - Sum of Delivery Packages
6 - Count of Delivery Stops
Pickup Query
1 - Center Number
2 - Vehicle Number
3 - Employee Name
4 - Data Date
5 - Sum of Pickup Packages
6 - Count of Pickup Stops
Each of these are fine on their own, but....there has to be a but...I want to combine both of these into one dataset which shows:
1 - Center Number
2 - Vehicle Number
3 - Employee Name
4 - Data Date
5 - Sum of Delivery Packages
6 - Count of Delivery Stops
7 - Sum of Pickup Packages
8 - Count of Pickup Stops
The problem is that using the relationships in Access I can only say, use the data from both tables that match, or use all the data from one and only those that match in the other. In this case, I want to combine the info and use all data from both tables. A vehicle may have deliveries and no pickups, or can have pickups and no deliveries. If I set the relationship up with one of the arrow join lines (for example from Delivery table to Pickup table), my dataset won't contain any information for a vehicle if it had pickups but no deliveries.
Hope this makes sense.