I have what seems to me to be a difficult query problem. I hope someone can help, as I'm a beginner.
The database I'm building is to help a company repair its machines. When a machine breaks, a 'tag' is entered in the database. Then, when the machine is fixed, the user re-enters the database and 'closes' the tag by checking a box. So I have a data table that posts for each tag whether it's closed or still open.
Now, what I want as the final product is to be able to track with a line graph how many tags were opened vs. how many were closed during a particular month. So the user enters (via a form) the beginning and end dates. For instance, 1 Jan. 2008 and 31 Dec. 2008. What I need the query to do is to divide that into months and track the data (open vs. closed tags) by month. It would then return a result for open tags vs. closed tags for January, February, etc. This would then become a single graph, showing the data points for each month.
There are several steps here, but the one that's giving me the most trouble at the beginning is how to get the query to divide the time period the user enters, and then do the calculations.
Thoughts on how to do this? Thanks in advance. Or is there another, better way to this this?
The database I'm building is to help a company repair its machines. When a machine breaks, a 'tag' is entered in the database. Then, when the machine is fixed, the user re-enters the database and 'closes' the tag by checking a box. So I have a data table that posts for each tag whether it's closed or still open.
Now, what I want as the final product is to be able to track with a line graph how many tags were opened vs. how many were closed during a particular month. So the user enters (via a form) the beginning and end dates. For instance, 1 Jan. 2008 and 31 Dec. 2008. What I need the query to do is to divide that into months and track the data (open vs. closed tags) by month. It would then return a result for open tags vs. closed tags for January, February, etc. This would then become a single graph, showing the data points for each month.
There are several steps here, but the one that's giving me the most trouble at the beginning is how to get the query to divide the time period the user enters, and then do the calculations.
Thoughts on how to do this? Thanks in advance. Or is there another, better way to this this?
Last edited: