R
Robbie
I have created a report that shows how many items were ordered over the
course of one year for xyz products. I would like to enhance the query but
my skills are pretty limited so I am seeking some help.
I would like my query to display results similarly to how I have typed them
up in this example excel snapshot
Year
Item Number
List total for each item
List how many orders there were for each item (I forgot to include this in
my screenshot example)
This way I can export to excel and autosum all of the item totals while
still having quantities for each one. I was also thinking of making a bar or
line chart for when I do previous years.
http://www.buggyonpurpose.com/random/query-allproductsforyear.png
Originally my query had each item in the criteria but after I made the table
that contained the products and linked it instead and so far seems to work
exactly the same as if I had specified each item. The items in my query are
all duplicate items but different versions. This isn't software but for
example if it was lets say it was windows licenses and each item number is a
different version; home, pro, ultimate, what have you.
As you can see I am specifying the date range in the criteria but in my
ItemsPerYearQuery table there is a start/End Date as well as a criteria
field. I am okay with using manually setting the criteria in the query
instead of pulling it from a table but I thought it might allow more options
if I had the date range in a table.
You'll also see in my screenshot how the query currently displays
SELECT tblOrderDetails.OrderDate, tblOrderDetails.Quantity,
ItemsPerYearQuery.ISBNB
FROM ItemsPerYearQuery INNER JOIN (tblOrderDetails INNER JOIN tblInventory
ON tblOrderDetails.odInvID = tblInventory.InvID) ON ItemsPerYearQuery.ISBNB
= tblInventory.ISBN_B
WHERE (((tblOrderDetails.OrderDate)>=#1/1/2006# And
(tblOrderDetails.OrderDate)<#12/31/2006#));
THANKS!
course of one year for xyz products. I would like to enhance the query but
my skills are pretty limited so I am seeking some help.
I would like my query to display results similarly to how I have typed them
up in this example excel snapshot
Year
Item Number
List total for each item
List how many orders there were for each item (I forgot to include this in
my screenshot example)
This way I can export to excel and autosum all of the item totals while
still having quantities for each one. I was also thinking of making a bar or
line chart for when I do previous years.
http://www.buggyonpurpose.com/random/query-allproductsforyear.png
Originally my query had each item in the criteria but after I made the table
that contained the products and linked it instead and so far seems to work
exactly the same as if I had specified each item. The items in my query are
all duplicate items but different versions. This isn't software but for
example if it was lets say it was windows licenses and each item number is a
different version; home, pro, ultimate, what have you.
As you can see I am specifying the date range in the criteria but in my
ItemsPerYearQuery table there is a start/End Date as well as a criteria
field. I am okay with using manually setting the criteria in the query
instead of pulling it from a table but I thought it might allow more options
if I had the date range in a table.
You'll also see in my screenshot how the query currently displays
SELECT tblOrderDetails.OrderDate, tblOrderDetails.Quantity,
ItemsPerYearQuery.ISBNB
FROM ItemsPerYearQuery INNER JOIN (tblOrderDetails INNER JOIN tblInventory
ON tblOrderDetails.odInvID = tblInventory.InvID) ON ItemsPerYearQuery.ISBNB
= tblInventory.ISBN_B
WHERE (((tblOrderDetails.OrderDate)>=#1/1/2006# And
(tblOrderDetails.OrderDate)<#12/31/2006#));
THANKS!