How Do i insert Date Data into Sql Server DB Using ADO objects???
i tried this but it didnt work
sql = "insert into table(datetimefield) values("
sql = sql & "'" & datevariable & "')"
cnn.execute sql
-----------------------------------------
error message i get is :
error converting datetime from char string
i tired useing now() function instead of datavariable for testing but i get the same message
any idias???
i tried this but it didnt work
sql = "insert into table(datetimefield) values("
sql = sql & "'" & datevariable & "')"
cnn.execute sql
-----------------------------------------
error message i get is :
error converting datetime from char string
i tired useing now() function instead of datavariable for testing but i get the same message
any idias???