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

Extract Data where year > 2003 or Null 1

Status
Not open for further replies.

Hillary

Programmer
Feb 15, 2002
377
US
I want to pull students who have not graduated yet. In the gratuation field there is either 2003, 2002, 0 or Null. I want students who have the graduation date field Null or 0

I tried > 2002 but the system only returns 0.

What formula would I use to include both Null and 0?

Thanks,

Hillary
 
Assuming that Graduation date is a date field, then try this.

IsNull({GraduationDate}) or year({GraduationDate}) > 2003

-LW
 
Forgot the 0

(
IsNull({GraduationDate}) or
{GraduationDate} = 0 or
year({GraduationDate}) > 2003
)

In short, you have to check for nulls first.

-LW

 
I never knew to check for Nulls first.

Thanks!

Hillary
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top