field type date is empty ?

hi

the field1 is type date

I want to make condition to field1if it is empty I do something other condtion

but when I try it , it show me error

this is the code :

if ( field1=" " ) /// how I verify if the field type date is empty ?

{

}

thank you

Hi Hakim

This will help you.

http://axaptafreak.blogspot.com/2006/04/specifying-empty-date-values.html

Hi hakim

For date testing it is null or not uou should use a funtion named “datenull()”.

eg:in case of query:

select table1 where table1.field1 == datenull()

eg:in case of form:

field1.valuestr() == datenull()

thank you the two solutions are corrects

tank you