Article View: microsoft.public.vb.crystal
Article #4can a crystal formula do this?
From: Luke Bond
Date: Wed, 12 Aug 1998 00:00
Date: Wed, 12 Aug 1998 00:00
29 lines
2281 bytes
2281 bytes
Please help... I'm using Crystal 6.0 and I'm trying to write a particular report, but I can't seem to get the formula to do what I want. Say, for example, I wanted to write an 'Occupancy Report' for a hotel that lists each day (between two date parameters) and indicates how many rooms are booked/available and their status (enquiry, confirmed, etc.). This is fine, but on days that have no rooms booked, then it skips these days because crystal selected no data (based on the idea that these days contained to booked rooms). What I want is a list of each day between the specified dates, including the blank ones. I thought that I could put a formula in the report header that initializes a date variable according to the parameter field FROMDATE, and then increment this day by one until it matched the next record that crystal selected (ie the next day with rooms booked), and print that line, but in the meantime print a line that indicated this day has no bookings. The problem is that there is no formula command like 'loop', 'while' or 'repeat' that will loop through the blank ones, and I can't link this date variable to a group. PLEASE, if anyone can help then I would greatly appreciate it. It is for a very important program. Regards, Luke Bond. lukeb@ionsoftware.com.au
Technical Details
Message-ID:
<35D10EAE.3D9C89D1@ionsoftware.com.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fae62,99458b5697f74167,start X-Google-Attributes: gidfae62,public X-Google-Thread: ffff5,99458b5697f74167,start X-Google-Attributes: gidffff5,public X-Google-Thread: 10baee,99458b5697f74167,start X-Google-Attributes: gid10baee,public X-Google-Thread: 107f35,99458b5697f74167,start X-Google-Attributes: gid107f35,public From: Luke Bond <lukeb@ionsoftware.com.au> Subject: can a crystal formula do this? Date: 1998/08/12 Message-ID: <35D10EAE.3D9C89D1@ionsoftware.com.au> X-Deja-AN: 380282739 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii X-Trace: news.mel.aone.net.au 902893150 3238 203.34.59.214 (12 Aug 1998 03:39:10 GMT) Organization: Ion Software Mime-Version: 1.0 NNTP-Posting-Date: 12 Aug 1998 03:39:10 GMT Newsgroups: microsoft.public.vb.crystal,borland.public.delphi.reporting-charting,comp.lang.pascal.delphi.databases,comp.lang.pascal.delphi.misc