
Insufficient base table information for updating or refreshing.
Hello All,
I keep getting this error message:
"Insufficient base table information for updating or refreshing."
Im trying to add a new record to the table, none of the values are required.
There is a primary key on a 5th field which is AutoIncr so i dont update
manually.
im using the Dataenvironment
Properties on cmdSaleData Batch Optimistic, adStatic, Client-Side
Using VB6+SP5.
Can anyone help?
Here is my code:
Public Sub UpdateSaleDetails()
Dim x As Integer
DataEnvironment1.rscmdSaleData.Open
For x = 0 To CS.Count - 1
DataEnvironment1.rscmdSaleData.AddNew
With DataEnvironment1.rscmdSaleData
.Fields(0).Value = CS.Number
.Fields(1).Value = CS.Items(x).itemId
.Fields(2).Value = CS.Items(x).Qty
.Fields(3).Value = CS.Items(x).Price
End With
Next
DataEnvironment1.rscmdSaleData.UpdateBatch adAffectAll
DataEnvironment1.rscmdSaleData.Close
End Sub
thanks in advance,
Luis Feliz