Dec 28, 2006 #1 kia70 Programmer Dec 28, 2006 4 CA A newbie question: Sometimes the result of SELECT might be empty/null. Instead of printing nothing I want to: If Empty/Null Print "NOT FOUND" Any clue... Thanx
A newbie question: Sometimes the result of SELECT might be empty/null. Instead of printing nothing I want to: If Empty/Null Print "NOT FOUND" Any clue... Thanx
Dec 28, 2006 1 #2 PHV MIS Nov 8, 2002 53,708 FR Something like this ? Code: SELECT IIf(Trim(yourField & '')='','NOT FOUND',yourField) As myResult Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886 Upvote 0 Downvote
Something like this ? Code: SELECT IIf(Trim(yourField & '')='','NOT FOUND',yourField) As myResult Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886