Evaluate how many orders where open on specific day
This is one part of a, for me, large access 2010 project I’m trying to develop for my workplace.
Background
I want to be able to show a chart, a graph, of how many open orders we have had during the last month (showing per day) and during the last year (showing per months). In order to do this I am trying to create a set of queries that would provide me with such information in the form/structure;
[Date] [OpenOrdersTotal]
Yyyy-mm-dd 4
Yyyy-mm-dd 5
Yyyy-mm-dd 3
Yyyy-mm-dd 4
And after that I would create a chart
...but that wont do it.
And after spending eight hours reading and trying :banghead: I now turn to the place where I myself have learned the most from.
I have attached a copy of the segment above to this post and anyone willing to give me a hand in resolving can download it.
This is one part of a, for me, large access 2010 project I’m trying to develop for my workplace.
Background
I want to be able to show a chart, a graph, of how many open orders we have had during the last month (showing per day) and during the last year (showing per months). In order to do this I am trying to create a set of queries that would provide me with such information in the form/structure;
[Date] [OpenOrdersTotal]
Yyyy-mm-dd 4
Yyyy-mm-dd 5
Yyyy-mm-dd 3
Yyyy-mm-dd 4
And after that I would create a chart
I have
1. TblOrders
[OrderID] Autonum
[CaseID] Foreign primary key
[DepartmentID] Foreign primary key
[DateOrderMade] Date (yyyy-mm-dd)
[DateOrderAnswerd] date (yyyy-mm-dd)
2. TblDates
[ReportDate] Date (yyyy-mm-dd)
The evaluation in a query that runs all [ReportDate] logically would say;1. TblOrders
[OrderID] Autonum
[CaseID] Foreign primary key
[DepartmentID] Foreign primary key
[DateOrderMade] Date (yyyy-mm-dd)
[DateOrderAnswerd] date (yyyy-mm-dd)
2. TblDates
[ReportDate] Date (yyyy-mm-dd)
Code:
Count(IIF([ReportDate] BETWEEN [DateOrderMade] AND [DATEORDERANSWERD]);1;0)
...but that wont do it.
And after spending eight hours reading and trying :banghead: I now turn to the place where I myself have learned the most from.

I have attached a copy of the segment above to this post and anyone willing to give me a hand in resolving can download it.