bongmarley
Programmer
I am trying to order people from a database based on their date of birth.
so the code is like this
("select * from tablename order by birthdate"
However the birthdate field is of type text so i have to use the cdate() function. This works good however the field is not required so it can contain a Null value. The cdate() function can not be used on a Null value. It just gives me an error. Is there any way to get around this
so the code is like this
("select * from tablename order by birthdate"

However the birthdate field is of type text so i have to use the cdate() function. This works good however the field is not required so it can contain a Null value. The cdate() function can not be used on a Null value. It just gives me an error. Is there any way to get around this