Thanks Allen

By using the loop as you indicated it seems to work. It seems in this case that you can't use the array directly in the Function call as I did in the 2nd script. I did not have to change the homemdb line. This script will be used to capture information on up to several hundred accounts using the account name. Wioth a couple more tweeks this should work nicely in the main script I'm using.

Hopefully I will not run into any more difficulty with it.
_________________________
Dale