R
R_wilson1
Guest
Hello,
I have a count issue that I have not seen being asked before. I am thinking that an IF statement should work but I am unable to figure out a way on how to do this. I have a group of users that can have multiple types of user profiles. I need to count only one of the profiles as one but ignore the other lesser profiles or if it is a duplicate.
i.e.
If profile_id = support then
Count support as 1
If profile_id = Full is true and profile_id = support_id isnull then
Count full as 1
If profile_id = read_only and profile_id = Full is null and profile_id = support_id isnull then
Count read only as 1
Eles
Count as unknown
End if
End if
End if
Form
Username profile
User1 Support
User1 Full
User2 Read only
User2 Full
User3 Read only
User3 Read only
User4 Full
User4 Full
Report output
Support = 1
Full = 2
Read only = 3
I hope this is clear enough, if not I can email a sample of the database (Access 97)
Thanks for any suggestions in the right directions.
Rick
I have a count issue that I have not seen being asked before. I am thinking that an IF statement should work but I am unable to figure out a way on how to do this. I have a group of users that can have multiple types of user profiles. I need to count only one of the profiles as one but ignore the other lesser profiles or if it is a duplicate.
i.e.
If profile_id = support then
Count support as 1
If profile_id = Full is true and profile_id = support_id isnull then
Count full as 1
If profile_id = read_only and profile_id = Full is null and profile_id = support_id isnull then
Count read only as 1
Eles
Count as unknown
End if
End if
End if
Form
Username profile
User1 Support
User1 Full
User2 Read only
User2 Full
User3 Read only
User3 Read only
User4 Full
User4 Full
Report output
Support = 1
Full = 2
Read only = 3
I hope this is clear enough, if not I can email a sample of the database (Access 97)
Thanks for any suggestions in the right directions.
Rick