I have a checkbox inside a container and now I want to update my dbf when I put a tick on my check box. I tried it as below and but the records are not updated.
Can anyone please help me to do this?
Thank you
Code:
Sele A.nSuplID,B.cBatchNo,B.cInvNo,Round(B.nInvValue*B.nConvRate,2) As InvVal,B.nRsRate,B.nConvRate,000000.00 As VatVal,nTax1_ID,nTax2_ID,nTax3_ID,nTax4_ID,nOthercharge,B.cPaymentCurr As Po_InvCurr,B.dCreateDate,B.cFactory,B.dInvDate ;
From C:\_UnqSupp A,Acp_InvDtl B Where A.nSuplID=B.nSuplID And B.cTag<>"N" And B.dPoDate>=dFrom And B.dPoDate<=dTo And B.cOrderType=cPoTypeTxt And B.cBatchNo Not In(Sele cBatchNo From FinalPym Where dPaymentDate<=_Asatdt) Into Dbf ;
C:\_PendBch
IF THISFORM.container2.cheRupees.Value=1
SELECT _PendBch
SCAN
IF _PendBch.Po_InvCurr<>"LKR" AND _PendBch.Po_InvCurr<>"RS."
SELECT _PendBch
REPLACE InvVal WITH InvVal*nRsRate
ENDIF
ENDSCAN
ENDIF
Can anyone please help me to do this?
Thank you