Question
April 3, 2008 at 01:30 AM
cora.kn.kwok

Insert system date into SQL server

by cora.kn.kwok . Updated 18 years, 4 months ago

I am now using VB6 and want to update the table card history with the system date of VB6 Now the format (3/4/2008 15:28:21) to the db in datatime format.

Dim sysdate as Date
sysdate = NOW

conn.Open sConnect
InsertSQL = “Insert into history values =” & sysdate & “)”

it would result syntax error near 15
I don’t know why and how to sovle, please help

Regards
Cora

This discussion is locked

All Comments