SpookiePower
Registered User.
- Local time
- Today, 10:30
- Joined
- Sep 22, 2008
- Messages
- 16
It is a long time since I last used access and are now starting to refresh it.
My question --
I have a report showing some data about a customer. Now I would like to be able to show in this report, how many items the customer has on stock. I have created a SQL like this -
SELECT COUNT (items) AS itemsonstock
FROM table
WHERE customernumber = 10
But in this example, the result will allways be from the customer number 10 !!
How do I do it, so that the result will be from the current customer, showing on the report ?
My question --
I have a report showing some data about a customer. Now I would like to be able to show in this report, how many items the customer has on stock. I have created a SQL like this -
SELECT COUNT (items) AS itemsonstock
FROM table
WHERE customernumber = 10
But in this example, the result will allways be from the customer number 10 !!
How do I do it, so that the result will be from the current customer, showing on the report ?