Hi everyone!
I've been using DBMan for a about a year now and I did several small hacks. Nothing major but enough to know how the program works and where everything is located. What I am doing now is creating a remote sales reporting system for an internet company. I have the main report running which is the ability to view orders based on a last name, email address or phone #. That part is working fine. Right now I am working on a report similar to the one that was discussed in this thread. But here is my situation and I need some clarification on the best way to do this - although I have not actually tried to implement this yet.
This new report, an order summary report is a seperate setup of DBMan in a seperate directory but running off the same database as the order view report and just extracting less fields. One of the main queries for this report is based on a date. Such as to view a summary (a list of order #'s and total's) for a specified date range. eg May 15 - May 19. The first field of each row is a date field which looks like this:
Monday, May 19, 2003 at 15:14:03 | etc.....
What I would need to do is be able to specify a date range and display a summary of orders placed during the specified period using ascending sorting. I would like to provide two drop downs which will include various date variables such as:
From Date Dropdown:
April 2003 (form value would be April+2003 effectively displaying all orders with an April 2003 date in ascending order)
May 1, 2003 (form value would be May+1+2003)
May 2, 2003
May 3, 2003
(etc continuing for every day in the month and I'd update the month name manually at the beginning of the month)
To Date Dropdown:
Blank unselected field (to run reports from the first dropdown only such as a whole month)
May 1, 2003 (form value would be May+1+2003)
May 2, 2003
May 3, 2003
(etc continuing for every day in the month and I'd update the month name manually at the beginning of the month)
So basically my question is: what is the simplest way to accomplish this from the methods that were mentioned above? I will be sitting and experimenting, but I figured I'd ask anyway to see what all the buffs here think
Thanks!