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

Date formula issue

Status
Not open for further replies.

Extrmdressage

Technical User
Sep 24, 2009
12
US
I want to use a formula like this to get {ELeaveofAbs.ulaDateEnd} = null, but I keep getting the error 'a date is required here'. Can anyone offer advice on how to get this formula to work?


if{ELeaveofAbs.ulaDateBeg} <= CurrentDate and {ELeaveofAbs.ulaDateEnd} >= 0/0/0

then 1

else 0
 
Hi,
You need to make the NULL test first and try with the IsNull function:
Code:
if
( NOT IsNull({ELeaveofAbs.ulaDateEnd})  )
and
({ELeaveofAbs.ulaDateBeg} <=  CurrentDate )

then 1

else 0

If the IsNull function does not work with your data try

Code:
 If NOT ({ELeaveofAbs.ulaDateEnd}) = Date(0,0,0) )
and

({ELeaveofAbs.ulaDateBeg} <=  CurrentDate )

then 1

else 0




[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top