I am using VB6 with oracle 9i as back-end.
I am using the following code to update record which has a 'Date' data type (oracle) field. The update happens correctly, but how can I store even the time in the same field?
strSQL = "UPDATE xxx.AT_VRC_ADVANCES SET
strSQL = strSQL & " , AV_UPDATE_DATE = " & "to_date('" & Format(Now(), "DD-MMM-YYYY") & "', 'DD-Mon-YYYY')"
oRS.Open strSQL, cnn, adOpenForwardOnly, adLockPessimistic
thanks
nath
I am using the following code to update record which has a 'Date' data type (oracle) field. The update happens correctly, but how can I store even the time in the same field?
strSQL = "UPDATE xxx.AT_VRC_ADVANCES SET
strSQL = strSQL & " , AV_UPDATE_DATE = " & "to_date('" & Format(Now(), "DD-MMM-YYYY") & "', 'DD-Mon-YYYY')"
oRS.Open strSQL, cnn, adOpenForwardOnly, adLockPessimistic
thanks
nath