FunkyBunch
Instructor
Hello All,
I am creating a report in CR9 with SQL 2005.
The report is to display all vehicles that have had a status change within a time period. Here is the first part of my selection formula:
The third line of the formula uses 2 isblank fields that check if the parameter has been left blank.({?Divison} = "")
The fifth line of the formula checks to make sure that the vehicle is not an owner operator, because if it is we do not care.
The 7th and 8th lines make sure the vehicle is set to deploy or dispose, which is required.
The 10th and 11th lines just check to make sure the status date is between two parameter dates. Nothing has been changed to the parameters except that they are dates.
I used then true to return all values that matched these restraints.
IF
(
({@UnitIsBlank} and {@DivisionIsBlank})
and
({ALLOCATION_REASONS_FW.DESCRIPTION_FW} <> 'Owner Operator')
and
(({VEHICLES_FW.VEHICLE_STATUS_FW} = 'DEPLOY') or ({VEHICLES_FW.VEHICLE_STATUS_FW} = 'DISPOSE'))
and
(({VEHICLES_FW.STATUS_DATE_FW} >= {?ReportPeriodStart}) and ({VEHICLES_FW.STATUS_DATE_FW} <= {?ReportPeriodEnd})))
Then True
I am not 100% sure it is my formula causing the problem, but if you can see any error throughout the formula please let me know.
Thanks.
I am creating a report in CR9 with SQL 2005.
The report is to display all vehicles that have had a status change within a time period. Here is the first part of my selection formula:
The third line of the formula uses 2 isblank fields that check if the parameter has been left blank.({?Divison} = "")
The fifth line of the formula checks to make sure that the vehicle is not an owner operator, because if it is we do not care.
The 7th and 8th lines make sure the vehicle is set to deploy or dispose, which is required.
The 10th and 11th lines just check to make sure the status date is between two parameter dates. Nothing has been changed to the parameters except that they are dates.
I used then true to return all values that matched these restraints.
IF
(
({@UnitIsBlank} and {@DivisionIsBlank})
and
({ALLOCATION_REASONS_FW.DESCRIPTION_FW} <> 'Owner Operator')
and
(({VEHICLES_FW.VEHICLE_STATUS_FW} = 'DEPLOY') or ({VEHICLES_FW.VEHICLE_STATUS_FW} = 'DISPOSE'))
and
(({VEHICLES_FW.STATUS_DATE_FW} >= {?ReportPeriodStart}) and ({VEHICLES_FW.STATUS_DATE_FW} <= {?ReportPeriodEnd})))
Then True
I am not 100% sure it is my formula causing the problem, but if you can see any error throughout the formula please let me know.
Thanks.