Hello,
I have an insert query that works on mysql and another delete statement that doesnt seem to work when executing on mysql.....
the problem is with the datetime I think.....
this works:
this doesnt work:
I dont understand why...Is the delete statement wrong syntax????
greets,
Inter
EDIT: this code did work on an access database but instead of STR_TO_DATE I used cdate.
I have an insert query that works on mysql and another delete statement that doesnt seem to work when executing on mysql.....
the problem is with the datetime I think.....
this works:
Code:
sql = "insert into tblchat (tijd, tekst, naam) values (str_to_date(" & now & ",%d/%m/%Y %H:%i:%s)," & gesplitst(0) & "," & gesplitst(1) & ")"
Code:
sql = "delete * from tblchat where tijd < STR_TO_DATE(" & dateadd("s",-5,now) & ",%d/%m/%Y %H:%i:%s) "
greets,
Inter
EDIT: this code did work on an access database but instead of STR_TO_DATE I used cdate.