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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date Formula

Status
Not open for further replies.

tomparko

MIS
Joined
Apr 11, 2005
Messages
9
Location
GB
Using Crystal 9 and Oracle 9i.

In a table called MEETING there is a field called DATE (meeting.date) which is populated as follows:

01/01/2004
03/01/2004
05/01/2004
07/01/2004
09/01/2004
11/01/2004
13/01/2004
15/01/2004

And another table called APPOINTMENT links to the MEETING table. This table has a field called APPDATE, which is populated as follows:

10/01/2004

We are wanting a formula to show the next meeting.date after the appointment.appdate hence (using the APPDATE - 10/01/2004) we would want to return 11/01/2004.

Can anyone help with this formula please?

Cheers,

Tom
 
You could create a formula like the following {@nextdate}:

if {table.date} > {table.apptdate} then {table.date} else date(9999,09,09)

Then right click on this formula and insert a summary (minimum). You can then conditionally suppress the summary with:

{@nextdate} = date(9999,09,09)

-LB
 
Thanks for that lbass. It works perfect!

Tom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top