BrandonBarbuto
Programmer
I hope this is the right forum to go to, here's the technical information behind the rreport i'm trying to make.
Tables :
Communication
Communication_type
Subject
Permit
Permit_Type
Facility
Example of the report would be :
Draft indirect permits were sent to 0 facilities.
Draft direct permits were sent to 3 industries :
KB Toys
EB Games
Gamestop
The first word "Draft" corralates to Subject.Subjet_name.
"indirect" or "direct" would be the permit_type
"permits were sent to" is just text
The sum of facilities is based off of how many times communication.facility_name is listed in that table. DistinctCount. Counted based on if they have the right subject (draft) and permit type (indirect).
The list of facility names comes from the facility table.
The tables link up like so :
Communication.subject - Subject.Subject
Communication.Communication_type - Comunication_type.comm_type
Communication.facilityID - facility.facility_ID
Communication.facilityId - Permit.facilityID
Permit.Permit_type - permit_type.permit_type
also, communication type has to be "CL"
The problem i'm running into is that I have to run the report for 5 different subjects specifically. If there isn't a matching permit_type for a subject, i'm not getting the desired effect on the report which would be :
"Draft indirect permits were sent to 0 facilities."
Instead because there's no match, its giving me nothing, which makes sense.
Problem is, this is my second week with Crystal reports and I don't know how to get around this, anyone have any ideas? Your help is greatly appreciated.
Tables :
Communication
Communication_type
Subject
Permit
Permit_Type
Facility
Example of the report would be :
Draft indirect permits were sent to 0 facilities.
Draft direct permits were sent to 3 industries :
KB Toys
EB Games
Gamestop
The first word "Draft" corralates to Subject.Subjet_name.
"indirect" or "direct" would be the permit_type
"permits were sent to" is just text
The sum of facilities is based off of how many times communication.facility_name is listed in that table. DistinctCount. Counted based on if they have the right subject (draft) and permit type (indirect).
The list of facility names comes from the facility table.
The tables link up like so :
Communication.subject - Subject.Subject
Communication.Communication_type - Comunication_type.comm_type
Communication.facilityID - facility.facility_ID
Communication.facilityId - Permit.facilityID
Permit.Permit_type - permit_type.permit_type
also, communication type has to be "CL"
The problem i'm running into is that I have to run the report for 5 different subjects specifically. If there isn't a matching permit_type for a subject, i'm not getting the desired effect on the report which would be :
"Draft indirect permits were sent to 0 facilities."
Instead because there's no match, its giving me nothing, which makes sense.
Problem is, this is my second week with Crystal reports and I don't know how to get around this, anyone have any ideas? Your help is greatly appreciated.