I have a order processing system written in VFP with SQL 7 as backend, I have two tables for order as header and detail table. The problem I am facing is that I am able to add new orders without any problem. When I try to modify the order having more than one items, all the rows get changed with the new data.
Example
ITEMNAME QTY RATE
=======================
ITEM1 5 10
ITEM2 15 20
ITEM3 20 25
suppose I change the ITEM2 QTY to say 50
I should expect following result
ITEMNAME QTY RATE
=======================
ITEM1 5 10
ITEM2 50 20
ITEM3 20 25
But What I am getting after saving data is
ITEMNAME QTY RATE
=======================
ITEM1 50 10
ITEM2 50 20
ITEM3 50 25
It is not always.
I checked all settings with DBSETPROP, the properties like WHERETYPE and UPDATETYPE all are correct.
Sometimes I get UPDATE CONFLICT error at time of TABLEUPDATE.
Any suggestions please
Thanks
Example
ITEMNAME QTY RATE
=======================
ITEM1 5 10
ITEM2 15 20
ITEM3 20 25
suppose I change the ITEM2 QTY to say 50
I should expect following result
ITEMNAME QTY RATE
=======================
ITEM1 5 10
ITEM2 50 20
ITEM3 20 25
But What I am getting after saving data is
ITEMNAME QTY RATE
=======================
ITEM1 50 10
ITEM2 50 20
ITEM3 50 25
It is not always.
I checked all settings with DBSETPROP, the properties like WHERETYPE and UPDATETYPE all are correct.
Sometimes I get UPDATE CONFLICT error at time of TABLEUPDATE.
Any suggestions please
Thanks