Hi,
I'm trying to query our V7 database via access 2007. I've followed the instructions from a post a longtime ago. I get all the information needed but my short description comes out in a what looks like a chinese font, very bizarre!
Anyone have any ideas? I would also like to define some dates on this report, ie just report on the last months sales. Can anyone shed any light on how to do this?
Thanks in advance for you help. Below is the process I have followed so far....
Here is how to do it in Access
Open Access and click on Queries.
Double click on Create Query in Query in design View
Add these 2 tables to the view from the add table box:
Product
Order detail
close box
Locate the view icon on left hand side of the icon bar - it has a drop down by the side of it - select SQL View and delete whatever is there and paste the following:
SELECT Product.[Product reference], Product.[Short description], Sum(OrderDetail.QuantityOrdered) AS [Number sold], Sum(OrderDetail.Price) AS [value]
FROM Product LEFT JOIN OrderDetail ON Product.[Product reference] = OrderDetail.ProductReference
GROUP BY Product.[Product reference], Product.[Short description]
ORDER BY Product.[Product reference];
Save the query as My Sales.
Go back to Design View and select query from the menu bar
Select make table and give your table a name such as Total sales.
Save query again
Double click on the my sales query and accept the questions asked.
go to the table view and open the Total sales table
If I understand your needs correctly, you will see the product reference all of them), short description and the number of items sold including those you have sold nothing of, plus total sales value (in pence).
I'm trying to query our V7 database via access 2007. I've followed the instructions from a post a longtime ago. I get all the information needed but my short description comes out in a what looks like a chinese font, very bizarre!
Anyone have any ideas? I would also like to define some dates on this report, ie just report on the last months sales. Can anyone shed any light on how to do this?
Thanks in advance for you help. Below is the process I have followed so far....
Here is how to do it in Access
Open Access and click on Queries.
Double click on Create Query in Query in design View
Add these 2 tables to the view from the add table box:
Product
Order detail
close box
Locate the view icon on left hand side of the icon bar - it has a drop down by the side of it - select SQL View and delete whatever is there and paste the following:
SELECT Product.[Product reference], Product.[Short description], Sum(OrderDetail.QuantityOrdered) AS [Number sold], Sum(OrderDetail.Price) AS [value]
FROM Product LEFT JOIN OrderDetail ON Product.[Product reference] = OrderDetail.ProductReference
GROUP BY Product.[Product reference], Product.[Short description]
ORDER BY Product.[Product reference];
Save the query as My Sales.
Go back to Design View and select query from the menu bar
Select make table and give your table a name such as Total sales.
Save query again
Double click on the my sales query and accept the questions asked.
go to the table view and open the Total sales table
If I understand your needs correctly, you will see the product reference all of them), short description and the number of items sold including those you have sold nothing of, plus total sales value (in pence).
Comment