بعد التحية
بحث في المنتدى عن كود يعدل حقل الرصيد في جميع الحقل في حساب الصندوق بواسطة DataRow
مثال
,وبعد معناه الرجو من الاخوه المساعدة بتعديل الكود التالي حيث انه يظهر خطاء صورته في المرفقات
Dim decBalanc As Decimal = 0
Dim Row As DataRow
For Each Row In dsCashAccount.Tables("dt_Cash_Account").Rows
If Row("Cash_Cash_Draw") > 0 Then
decBalanc = decBalanc - Row("Cash_Cash_Draw")
Row("Cash_Balance") = decBalanc
Else
decBalanc = decBalanc + Row("Cash_Deposit")
Row("Cash_Balance") = decBalanc
End If
Nex
t
مع الشكر للجميع