Solved

CR 9 - Daily Appointment  Report

Posted on 2004-08-13
4
442 Views
Last Modified: 2011-09-20
Using CR 9 with MS SQL DB.

Need a report to show appointments and open time slots by "XX" minute intervals.

Appointments for Room A, Room B, Room C...by time slot.

Example:
               Room A         Room B
8:00 AM   Patient 1        <open>
8:30 AM   <open>         <open>
9:00 AM   Patient 2        Patient 3
... and so on.

Thanks!
0
Comment
Question by:wcotis60
  • 2
  • 2
4 Comments
 
LVL 42

Accepted Solution

by:
frodoman earned 500 total points
ID: 11797327
The problem you face is that Crystal will not show you data that is doesn't have so in order to produce this report you're going to need to send into Crystal the records the way you want to see them.  One way to accomplish this would be:

Create a table for appointments that contains these fields:
   [Appointment_Time]
   [Room A]
   [Room B]
   ...etc...

You could create separate tables for each room but for this example I'm going to assume one table.

Now create a second control table that contains one field named [Time_Values].  Populate this table with all times you want to appear on your report (8:00 AM, 8:30 AM, etc.).

Create a new report, using both tables as your datasource.  Drag a link from your control table to the "appointment time" field of your appointment table.  Click on the link and then click the "options" button and change the link type to "left outer join" (or just "left join" depending on your version of Crystal).  Now simply create your report by dragging these fields into the details section:

{control_table.time_values}  {appointment_tbl.roomA}   {appointment_tbl.roomB}   ...etc...  {appointment_tbl.roomZ}

This gives you this report:
     ---------------------------------------
                    Room A         Room B
     8:00 AM   Patient 1      
     8:30 AM  
     9:00 AM   Patient 2        Patient 3
     ... and so on.
     ---------------------------------------

To get the designation "<open>" to appear instead of the blank spaces, suppress the field {appointment_tbl.roomA}.  Create the following formula and place it where the room A field was:

if isNull({appointment_tbl.roomA}) then "<open>" else {appointment_tbl.roomA};

That should give you the result you're looking for.  

If you need additional help please post back.  I'll answer if I can, but I'm about to get slammed by hurricane Charlie so no promises I'll have web access...

frodoman
0
 
LVL 10

Expert Comment

by:ebolek
ID: 11809653
me too. Frodoman. Where are you located . I am at Saint Petersburg and it just missed us, We are lucky
0
 
LVL 42

Expert Comment

by:frodoman
ID: 11809688
I'm a few miles north of St. Pete in Largo.  Looks like we dodged another bullet, huh - at the time I wrote that we were still in the bullseye!

frodoman
0
 
LVL 10

Expert Comment

by:ebolek
ID: 11809736
oh ok. Yep, I live in 4th street N, and we were the first to evacuate. Luckily I didnt go to Orlando :)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now