Hi,
I'm developing a report which brings back the number of arrests over a date range.
The requestor would also like to be able to choose days of the week within this date range and also a time range. An example of this might be: how many arrests were made between (date range) where the day of week was a Monday or a Thursday and the arrest times were between 2200 & 0600 hrs.
This part of my selection criteria works:
{ARRESTS.ARREST_DATE} = {?Date Range} and
{@ARREST_DOW} = {?Day of Week}
The formula for {@ARREST_DOW} is: WeekdayName (DayOfWeek ({ARRESTS.ARREST_DATE}))
The arrest time is actually a datetime field (only the time is populated though) which makes creating a parameter for this complicated as I would have to create it as a datetime parameter when I only want the time component. As a result, I created a formula, ctime({arrest.time}) and added that to the select statement ie.
{@time} = {?Time_Range}
When I entered 02:00 as my minimum and 06:00 as my maximum time the report appeared to work however when I entered 22:00 as my min and 06:00 as my max I got "The Minimum Cannot Be Larger Than The Maximum".
Any suggestions would be most appreciated.
The version is CR10 and the database is Oracle.
Thank you.
I'm developing a report which brings back the number of arrests over a date range.
The requestor would also like to be able to choose days of the week within this date range and also a time range. An example of this might be: how many arrests were made between (date range) where the day of week was a Monday or a Thursday and the arrest times were between 2200 & 0600 hrs.
This part of my selection criteria works:
{ARRESTS.ARREST_DATE} = {?Date Range} and
{@ARREST_DOW} = {?Day of Week}
The formula for {@ARREST_DOW} is: WeekdayName (DayOfWeek ({ARRESTS.ARREST_DATE}))
The arrest time is actually a datetime field (only the time is populated though) which makes creating a parameter for this complicated as I would have to create it as a datetime parameter when I only want the time component. As a result, I created a formula, ctime({arrest.time}) and added that to the select statement ie.
{@time} = {?Time_Range}
When I entered 02:00 as my minimum and 06:00 as my maximum time the report appeared to work however when I entered 22:00 as my min and 06:00 as my max I got "The Minimum Cannot Be Larger Than The Maximum".
Any suggestions would be most appreciated.
The version is CR10 and the database is Oracle.
Thank you.