Skip to Content
0
Former Member
Oct 07, 2005 at 09:01 AM

Cannot update StandardAveragePrice

15 Views

Hi, I'm getting a error message when I try to update the StandardAveragePrice field in the ItemWarehouseInfo document. Error msg is: [OITW] , 'Field cannot be updated (ODBC -1029)'. Below is my code.

If ConnectDICompany(oCompany, strErrMsg) <> RTN_SUCCESS Then GoTo Err_

Set oDocItem = oCompany.GetBusinessObject(oItems)

oDocItem.WhsInfo.SetCurrentLine (intIndex2)

oDocItem.WhsInfo.StandardAveragePrice = CDbl("234.00")

lngErr = oDocItem.Update

if lngErr <> 0 Then

oCompany.GetLastError lRet, strErrMsg

GoTo Err_

End If