I'm having a problem entering a Null in a date field when the date is not available yet.
I tried the following:
If "WribRecd" = "" Then
objCmd.Parameters.Append _
objCmd.CreateParameter("WribRecd", adDBTimeStamp, adParamInput, 4, DBNull)
Else
objCmd.Parameters.Append _
objCmd.CreateParameter("WribRecd", adDBTimeStamp, adParamInput, 4, PrepareString(WribRecd))
End If
I get the following error message:
ADODB.Command error '800a0d5d'
Application uses a value of the wrong type for the current operation.
/hr/wrib/_admin/processupdatelog.asp, line 181
Line 181 is where it says:
objCmd.Parameters.Append _
objCmd.CreateParameter("WribRecd", adDBTimeStamp, adParamInput, 4, PrepareString(WribRecd))
Can someone help me?
I tried the following:
If "WribRecd" = "" Then
objCmd.Parameters.Append _
objCmd.CreateParameter("WribRecd", adDBTimeStamp, adParamInput, 4, DBNull)
Else
objCmd.Parameters.Append _
objCmd.CreateParameter("WribRecd", adDBTimeStamp, adParamInput, 4, PrepareString(WribRecd))
End If
I get the following error message:
ADODB.Command error '800a0d5d'
Application uses a value of the wrong type for the current operation.
/hr/wrib/_admin/processupdatelog.asp, line 181
Line 181 is where it says:
objCmd.Parameters.Append _
objCmd.CreateParameter("WribRecd", adDBTimeStamp, adParamInput, 4, PrepareString(WribRecd))
Can someone help me?