Use below code [#Field : VCH Ref] Control : IsTitle : @@ChkVal [Collection : VchrefColl] Type : Voucher Fetch : VoucherNumber , Reference Filter : FltVal [System : Formulas] IsTitle : "ERROR !!"+$$NewLine+$$NewLine+"Duplicate Reference No" ChkVal : NOT $$ISEMPTY:$Reference AND $$NumItems:VchrefColl > 0 FltVal : $Reference = #VchRef
;Use below code [#Field : VCH Ref] Control : IsTitle : @@ChkVal [Collection : VchrefColl] Type : Voucher Fetch : VoucherNumber , Reference Filter : FltVal [System : Formulas] IsTitle : "ERROR !!"+$$NewLine+$$NewLine+"Duplicate Reference No" ChkVal : NOT $$ISEMPTY:$Reference AND $$NumItems:VchrefColl > 0 FltVal : $Reference = #VchRef Very Very Thank u & nice code sir, ONCE idea share to u, Control in In [#Field: VCH Particulars], when Equal Voucher Number = LedgerName then use control "Duplicate Reference No" Please apply and new code send us again thank to u