ValidBankAccountNo(BankAcct: String[, CountryCode: String]): Boolean
Returns a boolean indicating if the bank account number is valid for the country.
Currently only NZ bank account number can be validated.
ValidBankAccountNo function syntax has these named arguments:
Parameter |
Description |
BankAcct |
Required. The bank account to be validated. Validation expects either a number zero padded to 2.4.8.2 or 2.4.8.3 digits or with separators between segments. |
CountryCode |
Optional, defaults to Company Country Code if not specified. The country for the Bank Account. Currently only NZ supported other Country Codes will error. |
For example:
ValidBankAccountNo("0109020006838900","NZ")
ValidBankAccountNo("01090200068389000","NZ")
ValidBankAccountNo("01-0902-0068389-00","NZ")
ValidBankAccountNo("01 0902 00068389 000","NZ")
ValidBankAccountNo("01.0902.0068389.00","NZ")
All Return: True
ValidBankAccountNo("010902006838900","NZ")
Returns: False
because Account No is not padded to 8 characters.