G
Guest
I have been tasked to create a simple e-mail method from a form in access. I
have a form based on a table, the table has 3 fields supplier, e-mail &
pick(yes/no) field.
The user has asked that in the form they are able to pick specific e-mail
addresses by clicking in the Pick (yes/No) field than clicking the button to
open up outlook with the chosen e-mail addresses in the To field of outlook.
This is what I used so far
Dim StrTo As String
StrTo = DLookup("[e-mail]", "[Supplier]", "[pick]=true")
DoCmd.SendObject,,,To:=StrTo
It seems to work but only one e-mail address shows up in the to field
instead of all of them that were chosen.
I am new to programming and I'm sure I am doing something wrong but I'm
really not to sure what it is, could someone be of assistance out there?
Thanks
have a form based on a table, the table has 3 fields supplier, e-mail &
pick(yes/no) field.
The user has asked that in the form they are able to pick specific e-mail
addresses by clicking in the Pick (yes/No) field than clicking the button to
open up outlook with the chosen e-mail addresses in the To field of outlook.
This is what I used so far
Dim StrTo As String
StrTo = DLookup("[e-mail]", "[Supplier]", "[pick]=true")
DoCmd.SendObject,,,To:=StrTo
It seems to work but only one e-mail address shows up in the to field
instead of all of them that were chosen.
I am new to programming and I'm sure I am doing something wrong but I'm
really not to sure what it is, could someone be of assistance out there?
Thanks