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!

Selecting a NULL value in a formula

Status
Not open for further replies.

creekmetal

Technical User
Jan 29, 2009
1
US
I have records from a payroll database that have both a begin date and an end date if the employee is terminated.If the employee is still employed the "End Date" value is blank (does not say NULL). How do I create a formula to select only the records that have a begin date and an open or "null" end date?
 
not(isnull({table.begindate})) and
isnull({table.enddate})
 
Just to qualify that - if the value is NOT null for end date but IS blank then check for that also. If it is date type then default date may apply - if it is string type then it could be blank.


not(isnull({table.begindate})) and
(isnull({table.enddate}) or {table.enddate} like '')

'J

CR8.5 / CRXI - Discovering the impossible
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top