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

how to - show 1 of 2 fields in 1 column, conditionally?

Status
Not open for further replies.

ravina

MIS
May 11, 2006
55
CA
Hi,

I have two date fields, date1 and date2. one of them is not null.
on my report I have date column.. and I want to show date from one of this fields. I have to show date1 if it is not null or date2 if it is not null.

I tried to create data item and wrote expression etc.. do not know all steps or how to do above thing?

-ravina

 
Drop a calculation into your report, with the expression as follows:

if([date1] is not null) then ([date1]) else if ([date2] is not null) then ([date2]) else (null)

Hope that helps.

MF.
 
sure will help. Thanks.

will try today and let you know.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top