General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
My coding purpose is something as following:
strqry = sqlexec(myconnection,"select name, age, remarks from temployee where age>=20","c_emp")
if ISNULL(c_emp.remarks) or EMPTY(c_emp.remarks)
thisform.myfunctionA()
else
thisform.myfunctionB()
endif
The problem is even though the field is actually NULL value, the condition's still wrong.
I wonder how the SQL Server return the NULL values? Because, If I use nvl function in such cases : "lcremark = nvl(c_emp.remarks,"")", then it's worked.
Thanks a lot for u all suggestions.
Regards,
Mya
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only