In our database, we have numerous requirement codes that apply to each acct. number. I want to show the status of certain requirement codes without duplicate records--I want each acct. number to list only once on only one row. I would like the Req. code to be the header of the column and the status of the requirement to list beneath.
I am pulling the req.code from a separate requirements table, so when I add this field to the report I get 50+ records for each account unless I use the select expert to show me only certain req.code s, which will give me a record for each code I select.
Ex: (Currently)
Acct.# Req. Code Status
1 BOR 4
1 DAT 2
1 FLA 4
2 BOR 1
2 DAT 4
2 FLA 1
Ex: (Desired)
Acct.# Req (BOR) Req (DAT) Req (FLA)
1 4 2 4
2 1 4 1
What is the best way to do this?
I know that a cross tab report would do this for me, however I want to use formulas for the values of the requirements. For ex:
if {TB_CF_APPL.DPSTN_CDE} < 6
and ({TB_CF_REQ.REQ_CDE} = "DAT" and {TB_CF_REQ.STAT_CDE} = 4) and ({TB_CF_REQ.REQ_CDE} = "BOR" and {TB_CF_REQ.STAT_CDE} = 4) then "Stage 1"
I am pulling the req.code from a separate requirements table, so when I add this field to the report I get 50+ records for each account unless I use the select expert to show me only certain req.code s, which will give me a record for each code I select.
Ex: (Currently)
Acct.# Req. Code Status
1 BOR 4
1 DAT 2
1 FLA 4
2 BOR 1
2 DAT 4
2 FLA 1
Ex: (Desired)
Acct.# Req (BOR) Req (DAT) Req (FLA)
1 4 2 4
2 1 4 1
What is the best way to do this?
I know that a cross tab report would do this for me, however I want to use formulas for the values of the requirements. For ex:
if {TB_CF_APPL.DPSTN_CDE} < 6
and ({TB_CF_REQ.REQ_CDE} = "DAT" and {TB_CF_REQ.STAT_CDE} = 4) and ({TB_CF_REQ.REQ_CDE} = "BOR" and {TB_CF_REQ.STAT_CDE} = 4) then "Stage 1"