CR 9 - Daily Appointment  Report

Posted on 2004-08-13
Medium Priority
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.

               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.

Question by:wcotis60
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
LVL 42

Accepted Solution

frodoman earned 2000 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:
   [Room A]
   [Room B]

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...

LVL 10

Expert Comment

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

Expert Comment

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!

LVL 10

Expert Comment

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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses
Course of the Month15 days, 7 hours left to enroll

743 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