I actually got it to work on the main report but as soon as I put the sub reports in that give demographic detail the report goes haywire.
IsNull({CostCtrGrp.Expdate}) and
{CostCtrGrp.AdmitDate} < Date (2007, 07, 01) or
({CostCtrGrp.AdmitDate} in Date (2007, 07, 01) to Date (2008, 06, 30) )or
(({CostCtrGrp.DischargeDate} in Date (2007, 07, 01) to Date (2008, 06, 30)) and
{CostCtrGrp.AdmitDate} < Date (2007, 07, 01))
This is the code that worked.