Hi! I have trouble sending a DateTime variable from VB code to a SQL database DateTime field. I use this:
StrSQL = "INSERT INTO FyllTid (A, B, C, D, Time)" &
" VALUES (" & a & ", " & b & ", " & c & ", " & d & ", " & time & ")"
Time is DATETIME in SQL and time is DateTime in VB.NET. What could be the problem? The other variables is being sent but not the datetime.
Grateful for comments! Kind regards! /Magnus
StrSQL = "INSERT INTO FyllTid (A, B, C, D, Time)" &
" VALUES (" & a & ", " & b & ", " & c & ", " & d & ", " & time & ")"
Time is DATETIME in SQL and time is DateTime in VB.NET. What could be the problem? The other variables is being sent but not the datetime.
Grateful for comments! Kind regards! /Magnus