this has been driving me nuts for over an hour now.
I have a DB with a date field that is empty
Because of this the records sometimes get included in searches because their
contents are less than a particular search.
so..I had planned to populate them with any old date.
BUT I CAN'T!!!
I have tried all sorts..and nothing seems to work..
including
dim checkseperator
checkseperator = mid(rs("creation_date"), 3, 1) ' this will give "/" if the
field contains a date - 01/01/2001 etc
if checkseperator <> "/" then
rs("creation_date") = date()
rs.update
this does nothing, field remains empty
also tried
dim testforlength
testforlength len(rs("creation_date"))
if testforlength < "1" then
rs("creation_date") = date()
rs.update
nothing!!
even tried
dim testforbytelength
testforbytelength = lenB(rs("creation_date"))
if testforbytelength < "1" then
rs("creation_date") = date()
rs.update
again....nothing!!!
I did a response.write of the lenB of the fields..if it contains a date the
result is 20..if it contains nothing then result isn't 0 as I expected..it's
just blank
maybe this has something to do with strings instead of numbers but I just
can't get my head round it!!!
please help me...or just kill me
thanks