I
wish my method were so elegant as to loop the addresses! I am only minimally literate with code so we do our bulk mailing with a query. All the code I've found works only for Outlook, and I get an error message when I try to activate the Outlook Express libraries in the references.
Here's what we use. It's not too intuitive if you've got multiple users for your database, but since I can actually talk to all mine it works just fine.
I do my bulk mailing with a query. We have a button to launch the query. the query selects all the members for whom [HomeE-mail] is not null (or any subset of that that the user wants). Make sure any criteria columns you have in your query have the "show" property unchecked.
There is only one column on the query which will show when the query runs, and it is called:
Code:
Export: [FirstName] & " " & [LastName] & " <" & [HomeEMail] & ">; "
"Export" could be any word you wanted to put there - it will be your column header when you run the query.
The only part of this you really need is
Code:
Export: [HomeE-mail] & "; "
where ";" is any delimiter accepted by your email program to separate addresses.
Here's how it works
1) Run the query
2) Select all
3) Copy
4) Open a blank message in your e-mail program
5) Paste (for bulk mail I always use the "blind copy" field rather than the "to"

6) Scroll to the top of the field you just pasted into and delete the word "Export" from the beginning of your list
7) Write (or paste) your message
8) Send (some isp's require someone on the "to" line - I use myself)
I have a little button the users can use if they need to remember the steps (I've written them in slightly more detail there, since copying from one program and pasting into another seems to confuse a lot of people).
Using the more complicated version of the query above, both Outlook and Outlook Express will recognize that the e-mail address (between the "< >"

goes with the concatenated name and will just show you a list of names to work with instead of all those addresses. It's a nice feature if I'm working with a list that I DO want to show on the "to" line and people want to know who else got the message. I don't know what Lotus would do with that code. It would not work with AOL, but the simpler version would.
This method will NOT work with a hyperlink formatted field, because when you paste it, it adds ## around the address and it keeps the mailto: as part of the address (which the e-mail program doesn't know what to do with). BUT - I am solving that problem using the line of code provided by CCTC1 in an earlier posting on this thread, which strips all the extra stuff off and leaves just the address. AND continuing to pursue the ideas for the duplicate field.
It's a little cludgey, but it gets the job done!
-cynthia