Matthew Snook
NW Salmon Database
- Local time
- Today, 01:37
- Joined
- Apr 19, 2001
- Messages
- 133
I have a database with data recorded along with the date of an event. Current state of the database can be reported using the most recent data, and monthly reports can be generated for any particular month.
Now what I need is an historical monthly report. For every month back to the origin of the database I need to know the state of the system at that time. If data occured every month I could use a "GroupBy" clause to generate the report. But in some months no data is entered, and I still want to know the state of the system, ie. the most recent data at that time. How do I programmatically list every year and month? Do I need to create a table with Year and Month, or is there a way to have a report summarize in this fashion without having a physical list of the months. It just seems that there would be a more elegant method, but I don't know what it is!
Any ideas?
Thanks,
Matthew
Now what I need is an historical monthly report. For every month back to the origin of the database I need to know the state of the system at that time. If data occured every month I could use a "GroupBy" clause to generate the report. But in some months no data is entered, and I still want to know the state of the system, ie. the most recent data at that time. How do I programmatically list every year and month? Do I need to create a table with Year and Month, or is there a way to have a report summarize in this fashion without having a physical list of the months. It just seems that there would be a more elegant method, but I don't know what it is!
Any ideas?
Thanks,
Matthew