Click here to Skip to main content
15,881,803 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
VB
not {Command.REVERSED} and
CTIME({Command.DOWN_TIME}) IN
Switch
    (
    {?Shift} = "1st Shift",
        (ctime("07:30") to_ ctime("16:00")),
    {?Shift} = "2nd Shift",
        (ctime("15:30") to_ ctime("00:00")),
    {?Shift} = "3rd Shift",
        (ctime("23:30") to_ ctime("08:00")),
    {?Shift} = "All Shifts",
        (ctime("00:00") to_ ctime("23:59"))
    ) and
{Command.DOWN_TIME}={?Date Range} and
{Command.DESCRIPTION} = {?Reason Code}


I am tasked with adding a shift parameter to a downtime report. The above filter should filter out records where downtime starts within the switch case. However when I run the report, all values still persist and are not filtered out. Any ideas.

Command.Down_time is a datetime field.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900