
Problems inserting a date into SQL Server 7.0
I don't think you use wrong datd type. You can stop the program before the
SQL statement was excuted, and check the exact value SQL string. If you use
like:
Conn.execute strSQL+"1/1/2002"
or Conn.execute strSQL+MyDate
You can change it to
Dim SQLString as String
SQLString=strSQL+MyDate
conn.Execute SQLString
Then check the exact value of SQLString. Also you can paste the string into
SQL Query Analyzer and execute it for test.
Luke
(This posting is provided "AS IS", with no warranties, and confers no
rights.)