I'm trying to update a fvp dbc from vb 6.0 using ado 2.6.
code like...
.........
I get error ...
"Field CL_DATE does not accept null values."
.........
in session.dbf cl_date field - type DATE, width 8
I've tried adDate, adDBDate, adDBTimestamp also tried ado in vfp7.0. and get the same error.
can anyone help?
thanks
code like...
Code:
ConnectionString = "Provider=vfpoledb.1;Data " _
& "Source=..\star.dbc"
Set objConnection = New adodb.Connection
objConnection.Open (ConnectionString)
cmd.ActiveConnection = m_objConnection
cmd.CommandType = adCmdText
cmd.CommandText = "UPDATE session SET " _
& "session.cl_date = ? " _
& "WHERE session.user = ?"
cmd.Parameters.Append cmd.CreateParameter("@CloseDate", adDate, adParamInput, 8, Date)
cmd.Parameters.Append cmd.CreateParameter("@UserID", adChar, adParamInput, 10, xUserID)
cmd.Execute
.........
I get error ...
"Field CL_DATE does not accept null values."
.........
in session.dbf cl_date field - type DATE, width 8
I've tried adDate, adDBDate, adDBTimestamp also tried ado in vfp7.0. and get the same error.
can anyone help?
thanks