I have an access report that counts the number of "double" and triple rooms for a group of travelers. I optain the number of rooms by looking at each traveler and their room assignment. If it is a triple room, that means there are 3 people in that room so I count the number of travelers with a triple room assginment and divide by 3 to obtain the number of triple room I need. For a double room, there are 2 people in those rooms so I count the number of travelers with a double room assignment and divide by 2 to obtain the number of double rooms I need.
The Control Source code I am using for the double room is this
=-Int(-(Sum(Abs([RoomType]="Double"))/2))
The Control Source code I am using for the triple room is this
=-Int(-(Sum(Abs([RoomType]="Triple"))/3))
This works great however I need to add an additon condition to the double room. I need to also add to count each room type of "DoublX" as an additional room. Not divide it by 2. I haven't been able to figure out how to add the double room/2 plus each DoublX room.
Any help you can provide is greatly appreciated, thank you.