Hi
I have Crystal 9.0 reporting from an Access db.
I have a table of patients (determined by unique identifier of health card number) that I need to show specific visit history for. I created a table for these patients because the volume is much too large to enter all in a record select statement. The main report is based on this "patients" table which only has health card number and total visits in it (because I am reporting on patients who have a combined total visit of 6 or greater).
I have two databases of visits - one inpatient and one outpatient. The visit information is in a subreport (one for outpatient and one for inpatient) and linked to HCN on the main report.
The problem is with the inpatient subreport. The user wants to see all procedures, all diagnoses and all doctors so there is a main table (one) linking to diagnoses(many), procedures(many) and doctors(many). Normally I would have the "many" tables in subreports linking on visit unique ID number but I can't do this because the inpatient report is already in a subreport.
So now when I put the data elements of diagnosis, procedure and doctor in the report some are repeating themselves to match the maximum number of occurrences i.e. if there were 8 doctors then procedure and diagnosis repeat to 8.
The procedure, doctor and diagnoses tables all have the unique visit data element as well as occurrence number. So I tried to suppress the repeating ones by using the formula in the suppress format editor of:
dxacctno=mainacctno and
dxoccur=previous(dxoccur)
but it didn't work. Any suggestions greatly appreciated. Thanks.
I have Crystal 9.0 reporting from an Access db.
I have a table of patients (determined by unique identifier of health card number) that I need to show specific visit history for. I created a table for these patients because the volume is much too large to enter all in a record select statement. The main report is based on this "patients" table which only has health card number and total visits in it (because I am reporting on patients who have a combined total visit of 6 or greater).
I have two databases of visits - one inpatient and one outpatient. The visit information is in a subreport (one for outpatient and one for inpatient) and linked to HCN on the main report.
The problem is with the inpatient subreport. The user wants to see all procedures, all diagnoses and all doctors so there is a main table (one) linking to diagnoses(many), procedures(many) and doctors(many). Normally I would have the "many" tables in subreports linking on visit unique ID number but I can't do this because the inpatient report is already in a subreport.
So now when I put the data elements of diagnosis, procedure and doctor in the report some are repeating themselves to match the maximum number of occurrences i.e. if there were 8 doctors then procedure and diagnosis repeat to 8.
The procedure, doctor and diagnoses tables all have the unique visit data element as well as occurrence number. So I tried to suppress the repeating ones by using the formula in the suppress format editor of:
dxacctno=mainacctno and
dxoccur=previous(dxoccur)
but it didn't work. Any suggestions greatly appreciated. Thanks.