Am working with CFMX and an Access database...
I have an optional form field for date values. To prevent an error, I am entering a default value of "1/1/1111" into the database.
Now, when I allow the user to modify their enteries, naturally, they should not see "1/1/1111" in the date field, I would prefer if they saw "Please Select"
So, how do I write the CFIF statment that will compare the value from the database with the fixed value of "1/1/1111"??
I have tried the below:
<cfif TVSch_Date2 EQ CreateODBCDate(1/1/1111)>
and,
<cfif TVSch_Date2 EQ (1&"/"&1&"/"&1111)>
Both times I get the output as:
07/28/1110 instead of "Please Select"...
any suggestions would be deeply appreciated!
I have an optional form field for date values. To prevent an error, I am entering a default value of "1/1/1111" into the database.
Now, when I allow the user to modify their enteries, naturally, they should not see "1/1/1111" in the date field, I would prefer if they saw "Please Select"
So, how do I write the CFIF statment that will compare the value from the database with the fixed value of "1/1/1111"??
I have tried the below:
<cfif TVSch_Date2 EQ CreateODBCDate(1/1/1111)>
and,
<cfif TVSch_Date2 EQ (1&"/"&1&"/"&1111)>
Both times I get the output as:
07/28/1110 instead of "Please Select"...
any suggestions would be deeply appreciated!