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

Variables

Status
Not open for further replies.

i257156

Programmer
Sep 25, 2002
12
GB
Hi Guys,
I am trying to write a variable which is an if statement with in Business Objects but it isn't playing ball.

This is what I think I wanna type:

=If<Outcome Date> = &quot;&quot; Then(DaysBetween(<Initial Contact Date(Query 4 with BOCI001U)> , CurrentDate())Else(DaysBetween(<Initial Contact Date(Query 4 with BOCI001U)> ,<Outcome date>))) End If

Can anyone see where I am going wrong here??
Cheers
JB
 
I am not an expert but try this:


=If IsNull (<Outcome Date>) Then (DaysBetween(<Initial Contact Date(Query 4 with BOCI001U)>,CurrentDate()) ) Else DaysBetween (<Initial Contact Date(Query 4 with BOCI001U)> ,<Outcome date>))



 
You had an extra bracket on the end!
But other than that it works perfectly..
Thanks a million
JB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top