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

Choosing 1 date from 3 different date fields 1

Status
Not open for further replies.

BJD

Technical User
Jun 22, 2001
27
US
I have 3 date fields, each from a different table, and would like to use a formula that shows only one date based on the following conditions:

If cld_desired_ship_date is null, return cl_desired_ship_date, but if cl_desired_ship_date is null, return co_desired_ship_date.

The table (CLD) containing cld_desired_ship_date is joined with a left outer join - not every record in the 2 other tables (CL and CO) has an entry in the CLD table.
 
I assume that you can get all three dates into one record, without duplication. If so, try this:

If IsNull(CLD) and IsNull(CL) then CO else
If IsNull(CLD) then CL else
CLD Ken Hamady, On-site/Phone Crystal Reports Training/Consulting
Quick Reference Guide to using Crystal in VB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top