I have a report where I want to return all the rows with audittype = 2 and only return the rows with an audittype = 1 if reschedreason_id <> 1-23. See my record selection below:
{res2.restype_id} = 2 and
{res2.resunit_id} in [5, 6] and
{appt.scheduled_datetime} = {?StartDate} and
{schedlog.audittype_id} in [2, 1] and
{schedlog.reschedreason_id} in [1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 2, 20, 21, 22, 23, 3, 4, 5, 6, 7, 8, 9]
This record selection pulls in all the audittype_id 1 with a reschedreason_id <> 1-23 but none of the audittype_id of 2. How can I fix this?
Thanks,
Gary
{res2.restype_id} = 2 and
{res2.resunit_id} in [5, 6] and
{appt.scheduled_datetime} = {?StartDate} and
{schedlog.audittype_id} in [2, 1] and
{schedlog.reschedreason_id} in [1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 2, 20, 21, 22, 23, 3, 4, 5, 6, 7, 8, 9]
This record selection pulls in all the audittype_id 1 with a reschedreason_id <> 1-23 but none of the audittype_id of 2. How can I fix this?
Thanks,
Gary