Hopefully someone can render some help here...
I'm importing a comma-delimited text file with each row containing a unique numeric identifier for each customer along with an account value among many other items. A customer may have more than just one account so I need a way to sum the value of all their accounts.
It my idea to use an array that'll be two columns and a variable number of rows. With each line read from the import file I would like to check if the unique identifier (customer) exists in the array, if not re-dim the array increasing the rows by one and store the unique identifier in column 1 and the value in column 2. If it does exists then I would like to add the account value to the existing value contained in the array.
I've only be scripting for awhile and have used arrays only for simpler tasks. Appreciate any help!
- Iris
I'm importing a comma-delimited text file with each row containing a unique numeric identifier for each customer along with an account value among many other items. A customer may have more than just one account so I need a way to sum the value of all their accounts.
It my idea to use an array that'll be two columns and a variable number of rows. With each line read from the import file I would like to check if the unique identifier (customer) exists in the array, if not re-dim the array increasing the rows by one and store the unique identifier in column 1 and the value in column 2. If it does exists then I would like to add the account value to the existing value contained in the array.
I've only be scripting for awhile and have used arrays only for simpler tasks. Appreciate any help!
- Iris