I’m using CR XI with MS SQL 2000
I’m trying to build a report showing all possible Policies that a group can have along with a True/False value showing whether a group has that privilege. (I'll either group by group or use a parameter to select a single group once I get this working)
I’ve gottwo tables:
tbPolicies
tbGroupsPolicies
The tbPolicies table contains all possible Policies that a group could have:
PolicyID
PolicyName
The tbGroupsPolicies table contains
GroupID
PolicyID
IF a group has a Policy, there is an entry in the tbGroupsPolicies table with their GroupID and the PolicyID.
Seems pretty straightforward to me—do a Left Outer Join from tbPolicies.PolicyID to tbGroupsPolicies.PolicyID and I’m done, right?
I have a formula that looks to see if tbGroupsPolicies.PolicyID is NULL:
IF isnull ({tbGroupsPolicies.PolicyID})
then “TRUE”
else “FALSE”
For whatever reason, I cannot get the Polices that a group DOESN’T have to display. ONLY the Policies that a group DOES have are shown.
I’m trying to build a report showing all possible Policies that a group can have along with a True/False value showing whether a group has that privilege. (I'll either group by group or use a parameter to select a single group once I get this working)
I’ve gottwo tables:
tbPolicies
tbGroupsPolicies
The tbPolicies table contains all possible Policies that a group could have:
PolicyID
PolicyName
The tbGroupsPolicies table contains
GroupID
PolicyID
IF a group has a Policy, there is an entry in the tbGroupsPolicies table with their GroupID and the PolicyID.
Seems pretty straightforward to me—do a Left Outer Join from tbPolicies.PolicyID to tbGroupsPolicies.PolicyID and I’m done, right?
I have a formula that looks to see if tbGroupsPolicies.PolicyID is NULL:
IF isnull ({tbGroupsPolicies.PolicyID})
then “TRUE”
else “FALSE”
For whatever reason, I cannot get the Polices that a group DOESN’T have to display. ONLY the Policies that a group DOES have are shown.