|
-
Mar 17th, 2010, 10:05 AM
#1
Thread Starter
Junior Member
[RESOLVED] Unable to Change Property
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|