Hi all
Crystal 9
Access 97
I have a problem with the report i am writing. At present i have details of visits made to patients.
i.e.
Patient_No, Patient_Referral_key, Referral_Date, Discharge_Date, Last_Contact_Made_Date, Date_Diff
i am grouping on the Patient_Referral_Key. This key may relate to many visits so the Last_Contact_Made_Date field is a formula which gets the maximum date in the visits field for Patient_Referral_Key. I have a formula called Date_Diff which calculates the difference in months between the last contacts and todays date. This all works. The problem i have is when i try to order the output so that the largest Date_Diff is shown first and goes down to the lowest.
The formula is not available for selecting as a group or for ordering. Could anyone shed some light on how this could be done as i am having no joy whatsoever.
Hope that made sense
Thanks in advance
Crystal 9
Access 97
I have a problem with the report i am writing. At present i have details of visits made to patients.
i.e.
Patient_No, Patient_Referral_key, Referral_Date, Discharge_Date, Last_Contact_Made_Date, Date_Diff
i am grouping on the Patient_Referral_Key. This key may relate to many visits so the Last_Contact_Made_Date field is a formula which gets the maximum date in the visits field for Patient_Referral_Key. I have a formula called Date_Diff which calculates the difference in months between the last contacts and todays date. This all works. The problem i have is when i try to order the output so that the largest Date_Diff is shown first and goes down to the lowest.
The formula is not available for selecting as a group or for ordering. Could anyone shed some light on how this could be done as i am having no joy whatsoever.
Hope that made sense
Thanks in advance