Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Group Name even if detail is blank

Status
Not open for further replies.

kinvie

Technical User
Aug 4, 2004
21
US
I am using Crystal Reports 10.0 to connect to our electronic medical record with an ODBC connection. I have a report that lists patients and the specific labs, the lab values and the date they have been done for certain diagnoses. The problem is that if a patient has never had the lab test done then, the name of the group does not appear under the patient name. The physicians would like to see a blank if the patient had not had the test done.

Currently, my report would display:
Patient Name (Group 1)
LDL (group 2) 99 1/1/2007
HGBA1C (Group 2) 12.1 1/1/2007

What I would like it to display would be, even though the patient has not had the eye exam.
Patient Name (Group 1)
LDL (group 2) 99 1/1/2007
EYE Exam (group 2)
HGBA1C (Group 2) 12.1 1/1/2007


Is there a way for me to get what I really want, the group name to print even if the patient does not have it as a record?
Thanks in advance for your help.
 
Crystal does not report on data that does not exist in the report.

So you will need to take the table that includes all types of possible services performed (Group2) values, regardless if they were performed in the recordset you are working with. Left outer join this table to the table of the services performed table, rather than just reporting on the services performed, and group on this field.

Software Sales, Training, Implementation and Support for Macola, eSynergy, and Crystal Reports

"If the phone doesn't ring, it's me".....Jimmy Buffet
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top