When I execute the following, it finishes without error, but the field
dateOfInspectio n remains unchanged. I've verified that the values assigned
to parameters (held in mRow) are correct and that the connection string is
correct and the connection is open. What can I possibly be doing wrong
here?
Dim cmd As New OleDbCommand("u pdate cert set dateofinspectio n=@dof where
id=@id", cnnData)
With cmd
.CommandText = "update cert set dateofinspectio n=@dof where id=@id"
.Parameters.Add ("@id", OleDbType.BigIn t)
.Parameters.Add ("@dof", OleDbType.Date)
.Parameters("@i d").Value = mRow.Item("id")
.Parameters("@d of").Value = mRow("dateofins pection")
.ExecuteNonQuer y()
End With
dateOfInspectio n remains unchanged. I've verified that the values assigned
to parameters (held in mRow) are correct and that the connection string is
correct and the connection is open. What can I possibly be doing wrong
here?
Dim cmd As New OleDbCommand("u pdate cert set dateofinspectio n=@dof where
id=@id", cnnData)
With cmd
.CommandText = "update cert set dateofinspectio n=@dof where id=@id"
.Parameters.Add ("@id", OleDbType.BigIn t)
.Parameters.Add ("@dof", OleDbType.Date)
.Parameters("@i d").Value = mRow.Item("id")
.Parameters("@d of").Value = mRow("dateofins pection")
.ExecuteNonQuer y()
End With
Comment