I am trying to allow changes to our database through a timecard program. We use and Image database and I am using VS 2008. I am getting the error: (MDMDA) Unable to change property. The trouble shooting tip tell me "check the error code property of the exception to determine the HRESULT returned by the COM object." The error line is in bold.




If Not Trim(frmMantime.txtFunc1.Text) = "" And Not frmMantime.txtRec1.Text = "" Then
'Update Record
lngRecordNumber = frmMantime.txtRec1.Text
If ShopClock.ReadDirect(lngRecordNumber, "@") Then
ShopClock.item("FUNC-CODE") = frmMantime.txtFunc1.Text
ShopClock.item("START-TIME") = frmMantime.txtClock1.Text

If ShopClock.DBUpdate(1, "@") Then
MsgBox("Record was successfully Updated", MsgBoxStyle.OkOnly)

Else
MsgBox("Failed to update Record", MsgBoxStyle.OkOnly)

End If