2.02 Could not run program: Variable1OnCalc. Could not convert variant of type (Null) into type (Currency)

The above error message usually can found where:-

- Preview PASS Customer / Supplier Payment.

- Preview EMPTY document detail. It might be user forgot to insert the detail.

- ZERO transactions for the month when apply and preview the customer / supplier statement. For example, zero transaction for the months.

- Invalid type of variant, eg. string try to convert to currency.