J
Jo Gjessing
Hi all,
In a database of mine I've built a form with a listboks showing all the
email addresses registered in the database and a button which users shall
click to send email. As an user click the button the database shall open the
email form from Outlook with the addresses the user has marked filled in. As
the code behind the button I have:
DoCmd.SendObject acSendNoObject, stDocName, acFormatXLS, Me.email_recipient,
, , "Test Email", , True
The problem is that when I click the button I get an error message telling
that I use wrong data type. Is that because the addresses in the list box
come as an array? How can I rewrite the code som that it works? If you have
any idea I will be very glad to hear about it. Thank you very much in advance.
Jo
In a database of mine I've built a form with a listboks showing all the
email addresses registered in the database and a button which users shall
click to send email. As an user click the button the database shall open the
email form from Outlook with the addresses the user has marked filled in. As
the code behind the button I have:
DoCmd.SendObject acSendNoObject, stDocName, acFormatXLS, Me.email_recipient,
, , "Test Email", , True
The problem is that when I click the button I get an error message telling
that I use wrong data type. Is that because the addresses in the list box
come as an array? How can I rewrite the code som that it works? If you have
any idea I will be very glad to hear about it. Thank you very much in advance.
Jo