I have to add a Yes / No parameter to my report. Yes = user wants to see the department and no = they don't. Not sure how to go about doing this - this is a new realm for me. I know it is an If statement - how do I get it into the parameter vales parameter dialog box?
Here is my Crystal / Select Expert Queries:
Crystal SQL:
SELECT distinct xvd.xvd_display, ock.bra_id, ock.dpr_id, ock.usr_id, ock.lbc_id,ock.ock_d_start, ock.ock_d_end, ock.ock_status, ock.ock_reason,
ofh.ofh_doc_id, ofh.cpy_id, bra.bra_screen
FROM orl INNER JOIN
xvd ON orl.lbc_id = xvd.xcv_id INNER JOIN
ock ON orl.ofh_id = ock.ofh_id and
orl.usr_id = ock.usr_id AND orl.lbc_id = ock.lbc_id INNER JOIN
ofh ON orl.ofh_id = ofh.ofh_id
INNER JOIN bra ON ock.bra_id = bra.bra_id
WHERE (xvd.xcd_id = '13') AND (xvd.lng_id = 0) AND (ock.ock_d_start >= {?p_Start_Date}) and (ock.ock_d_end <= dateadd(d,1,{?p_End_Date}))
order by ofh_doc_id
Select Expert SQL:
({?p_Company} = "All" or {Command.cpy_id} in {?p_Company}) and
({?p_Technician} = "All" or {Command.usr_id} in {?p_Technician}) and
({?p_Branch} = "All" or {Command.bra_id} in {?p_Branch})
Here is my Crystal / Select Expert Queries:
Crystal SQL:
SELECT distinct xvd.xvd_display, ock.bra_id, ock.dpr_id, ock.usr_id, ock.lbc_id,ock.ock_d_start, ock.ock_d_end, ock.ock_status, ock.ock_reason,
ofh.ofh_doc_id, ofh.cpy_id, bra.bra_screen
FROM orl INNER JOIN
xvd ON orl.lbc_id = xvd.xcv_id INNER JOIN
ock ON orl.ofh_id = ock.ofh_id and
orl.usr_id = ock.usr_id AND orl.lbc_id = ock.lbc_id INNER JOIN
ofh ON orl.ofh_id = ofh.ofh_id
INNER JOIN bra ON ock.bra_id = bra.bra_id
WHERE (xvd.xcd_id = '13') AND (xvd.lng_id = 0) AND (ock.ock_d_start >= {?p_Start_Date}) and (ock.ock_d_end <= dateadd(d,1,{?p_End_Date}))
order by ofh_doc_id
Select Expert SQL:
({?p_Company} = "All" or {Command.cpy_id} in {?p_Company}) and
({?p_Technician} = "All" or {Command.usr_id} in {?p_Technician}) and
({?p_Branch} = "All" or {Command.bra_id} in {?p_Branch})