Hi Forum, Access 2000
I am working with sending emails to customers on their loan account balances.
Have sorted out an email to cover a Loan which by definition is One Record.
Now I want to email a Customer Balance which may have more then one Loan Record.
How do you handle this scenario in vba as you can't just load the code with heaps of variables just in case they are needed.
Is this where you use an Array
I am testing Arrays with some success and a little failure but of course, how do you handle the data in the email message as again, it can have a variable number of lines/records.
Using ReDim Arrayname(intLower To intUpper) to set the Array size to suit the record number - Is this how you would do it??
I could use a table to hold the data but then we still have the issue of the email text / body.
Any advice on what direction to approach this issue would be most appreciated.
Thanks,
Bill
I am working with sending emails to customers on their loan account balances.
Have sorted out an email to cover a Loan which by definition is One Record.
Now I want to email a Customer Balance which may have more then one Loan Record.
How do you handle this scenario in vba as you can't just load the code with heaps of variables just in case they are needed.

Is this where you use an Array

I am testing Arrays with some success and a little failure but of course, how do you handle the data in the email message as again, it can have a variable number of lines/records.
Using ReDim Arrayname(intLower To intUpper) to set the Array size to suit the record number - Is this how you would do it??

I could use a table to hold the data but then we still have the issue of the email text / body.
Any advice on what direction to approach this issue would be most appreciated.

Thanks,
Bill