dlongnecker
MIS
I've been given the task of taking one of our existing bases and pulling querying information with a parameter on a DATETIME field.
The situation is as:
If a user performs an action in {?timerange}, then count (or limit the provided results in the report).
I want my end user to be able to select if a work order was closed in 10, 15, 30, 45, 60, 90, and 120 minutes. Our base stores the information in the following format:
DateTime (2001, 12, 07,13, 01, 27)
Roughly, and idealistically, I would like to be able to do something like:
{TASKS.CLSDBY} = 'USER' and {TASKS.OPENBY} = 'USER' and
TimeValue({TASKS.CLSDDATE}) <= (TimeValue({TASKS.OPENDATE}) + {?timeclosed})
... and I'm doing a count off of that field. It's messy, but it seems to be working until I find a better way.
With the dates being stored in that delimited format, I'm unable to see what field to change for the time frame and how to deal when it changes hours/days and changes fields.
Any ideas would be great!
Thanks!
-David
David R. Longnecker
Management Information Services
Wichita Public Schools, USD 259
dlongnecker@usd259.net
The situation is as:
If a user performs an action in {?timerange}, then count (or limit the provided results in the report).
I want my end user to be able to select if a work order was closed in 10, 15, 30, 45, 60, 90, and 120 minutes. Our base stores the information in the following format:
DateTime (2001, 12, 07,13, 01, 27)
Roughly, and idealistically, I would like to be able to do something like:
{TASKS.CLSDBY} = 'USER' and {TASKS.OPENBY} = 'USER' and
TimeValue({TASKS.CLSDDATE}) <= (TimeValue({TASKS.OPENDATE}) + {?timeclosed})
... and I'm doing a count off of that field. It's messy, but it seems to be working until I find a better way.
With the dates being stored in that delimited format, I'm unable to see what field to change for the time frame and how to deal when it changes hours/days and changes fields.
Any ideas would be great!
Thanks!
-David
David R. Longnecker
Management Information Services
Wichita Public Schools, USD 259
dlongnecker@usd259.net