I am trying to count how many products are associated with each of our female customers so I can use it in a later calculation.
SELECT [Customers].Customer_ID
FROM [Customers]
WHERE ((([Customers].Gender)='Female'))
GROUP BY [Customers].Customer_ID;
The above SQL gives me a list of ID's for our female customers. Now, I guess in a separate query, I need to count the number of Product ID's for each of the ID's in the above list, but I don't know where to go from here. I don't know if I can combine this step into the above query, or if I need to do something else.
I am thinking I need something like this:
DCount("Order_ID", "Orders", "Customer_ID = [**how do I make it to where
this equals the resulting Customer_ID's from the above query**]" )
Can someone please help? Am I on the right track?
If you need more info, please let me know.
Orders?GROUP BY [Customers].Customer_IDsuggests thatCustomer_IDis not unique in theCustomerstable. Is that really true?