G
Geoff
Hi everyone,
This question has been answered many times but I'm afraid, after spending
all day researching it, I cannot get it to work.
I have a table with one of the fields containing email addresses. I want to
have a command button that can be clicked on, which will find all the
addresses and open a new email in Outlook Express, with the addresses in the
BCC field. I also want to add an attachment but I'm not that bothered if I
have to do that bit manually.
I've read several answers to this question from other people and the
simplest way, although you can't specify an attachment, seems to be to use
the SendObject command. I understand the syntax of SendObject but I don't
think that's the problem.
Various different ideas of how to write the code all have something in
common, which is that they have a line similar to
"CurrentDB.OpenRecordset("Tablename")". There is then some kind of loop that
goes through all the records and adds the email addresses into one string,
with a colon between each one. This string is then used for the BCC part of
the SendObject command.
However, what I can't work out is where the particular field that has my
email addresses in is specified? I can't see that in any of the suggested
code. I can see that the table name is there, but not the email address
field. Even so, I've tied several different bits of code and the computer
just sits there and doesn't even try to open Outlook Express. I've also
tried creating a new query with just the email address field in, but that
doesn't work either.
Would someone be so kind as so tell me what I'm missing, and suggest some
code that will work? Thanks very much.
By the way, I'm using Access 2000.
Geoff.
This question has been answered many times but I'm afraid, after spending
all day researching it, I cannot get it to work.
I have a table with one of the fields containing email addresses. I want to
have a command button that can be clicked on, which will find all the
addresses and open a new email in Outlook Express, with the addresses in the
BCC field. I also want to add an attachment but I'm not that bothered if I
have to do that bit manually.
I've read several answers to this question from other people and the
simplest way, although you can't specify an attachment, seems to be to use
the SendObject command. I understand the syntax of SendObject but I don't
think that's the problem.
Various different ideas of how to write the code all have something in
common, which is that they have a line similar to
"CurrentDB.OpenRecordset("Tablename")". There is then some kind of loop that
goes through all the records and adds the email addresses into one string,
with a colon between each one. This string is then used for the BCC part of
the SendObject command.
However, what I can't work out is where the particular field that has my
email addresses in is specified? I can't see that in any of the suggested
code. I can see that the table name is there, but not the email address
field. Even so, I've tied several different bits of code and the computer
just sits there and doesn't even try to open Outlook Express. I've also
tried creating a new query with just the email address field in, but that
doesn't work either.
Would someone be so kind as so tell me what I'm missing, and suggest some
code that will work? Thanks very much.
By the way, I'm using Access 2000.
Geoff.