G
Guest
I'm having trouble running a query in which i want to view outgoing Special
Events orders for the week. Some orders have corresponding order details and
others do not. For the orders that have corresponding details, the query
calculates the total number of items on that order.
Everything works fine except that the query doesn't return orders that have
no corresponding lines in the Event Detail table. Any way i can get both the
orders with and without order details to display??
Here's my non-working query so far (Please note it was written in Design
View):
SELECT Events.[Event Number], Events.Customer, Events.[Service Date],
Events.[Service Type], Events.[Number of Machines], Events.[Arrival Time],
Events.[Departure Time], Events.[Event City], Sum([Event Detail].Quantity) AS
SumOfQuantity
FROM Events INNER JOIN [Event Detail] ON Events.[Event Number]=[Event
Detail].[Event ID]
GROUP BY Events.[Event Number], Events.Customer, Events.[Service Date],
Events.[Service Type], Events.[Number of Machines], Events.[Arrival Time],
Events.[Departure Time], Events.[Event City]
HAVING (((Events.[Service Date]) Between Date() And Date()+7));
Events orders for the week. Some orders have corresponding order details and
others do not. For the orders that have corresponding details, the query
calculates the total number of items on that order.
Everything works fine except that the query doesn't return orders that have
no corresponding lines in the Event Detail table. Any way i can get both the
orders with and without order details to display??
Here's my non-working query so far (Please note it was written in Design
View):
SELECT Events.[Event Number], Events.Customer, Events.[Service Date],
Events.[Service Type], Events.[Number of Machines], Events.[Arrival Time],
Events.[Departure Time], Events.[Event City], Sum([Event Detail].Quantity) AS
SumOfQuantity
FROM Events INNER JOIN [Event Detail] ON Events.[Event Number]=[Event
Detail].[Event ID]
GROUP BY Events.[Event Number], Events.Customer, Events.[Service Date],
Events.[Service Type], Events.[Number of Machines], Events.[Arrival Time],
Events.[Departure Time], Events.[Event City]
HAVING (((Events.[Service Date]) Between Date() And Date()+7));