I have a crystal report that is like this:
Group By Property.ID
Group By RentalUnit.PropertyID
Group By Tenant.PropertyID
That way it comes out looking something like this:
Property1
unit1 data, tenant data
unit2 data, tenant data
...
unitN data, tenant data
Property2
unit1 data, tenant data
unit2 data, tenant data
...
unitN data, tenant data
...
PropertyN
unit1 data, tenant data
unit2 data, tenant data
...
unitN data, tenant data
The tables look like this:
Property:
ID
other data
RentalUnit
ID
PropertyId <-- This is the foreign key representing what property they belong to
other data
Tenant
ID
PropertyID <-- foreign key to their property
UnitNumber <-- foreign key to their unit
other data
I want to change the report though. I'm passing it a variable call SelectedPropertyID, and I want to show only the rental units (and the tenant assigned to the rental unit) for the selected Property.
How can I do this? I'm rather new to crystal reports so please excuse my inexperience.