elsenorjose
Technical User
Hello everyone,
I'm hoping this is a simple fix but I need to conditionally format fields that don't match another field in my report but based on them showing up ANYWHERE in the fields I'm comparing.
Basically, in the attached, for Log #123 (which identifies a surgery), you can see that Surg1 'Z' does not show up under Prov_Name and all fields are correctly highlighted. However, Surg2 and Surg3 'A' does show up under Prov_Name so I would not want any of their fields highlighted (a Surgeon can show up under any of the 3 Surg fields). The same goes for Anesth2; since they do show up under Prov_Name, I would not want any of their fields highlighted. Anesth1 is correctly highlighted as they do not show up in Prov_Name at all. The business rule is that if a surgeon was involved in a surgery, Log#, they should also have a matching Prov_Name record as that identifies a billable service. If they do not show up under Prov_Name, then billers need to research and see why they did not charge for their service.
My formatting formula is as follows:
If {VW_SURG_FOR_SCL_1.PROV_NAME} <> {BILLPROV.PROV_NAME} Then crTeal Else crNoColor
I realize the problem is that because the logic is row based, as soon as the Prov_Name changes, the field will be highlighted. Is there a way to write this formula to look at ALL Prov_Names? I'm not sure if it's important but the Log#s change also. Each Log# identifies a surgery.
I'm hoping this is a simple fix but I need to conditionally format fields that don't match another field in my report but based on them showing up ANYWHERE in the fields I'm comparing.
Basically, in the attached, for Log #123 (which identifies a surgery), you can see that Surg1 'Z' does not show up under Prov_Name and all fields are correctly highlighted. However, Surg2 and Surg3 'A' does show up under Prov_Name so I would not want any of their fields highlighted (a Surgeon can show up under any of the 3 Surg fields). The same goes for Anesth2; since they do show up under Prov_Name, I would not want any of their fields highlighted. Anesth1 is correctly highlighted as they do not show up in Prov_Name at all. The business rule is that if a surgeon was involved in a surgery, Log#, they should also have a matching Prov_Name record as that identifies a billable service. If they do not show up under Prov_Name, then billers need to research and see why they did not charge for their service.
My formatting formula is as follows:
If {VW_SURG_FOR_SCL_1.PROV_NAME} <> {BILLPROV.PROV_NAME} Then crTeal Else crNoColor
I realize the problem is that because the logic is row based, as soon as the Prov_Name changes, the field will be highlighted. Is there a way to write this formula to look at ALL Prov_Names? I'm not sure if it's important but the Log#s change also. Each Log# identifies a surgery.