related combo_box to get emails and send it with outlook (1 Viewer)

ryprobg

Member
Local time
Today, 09:13
Joined
Sep 3, 2022
Messages
59
hello programmers
i have a mini form used to send emails to two person ( nom_hc) listed in (resp_acc) with emails ( email_hc)
in the form the user should select in cbo1 person1 and in the cbo2 person 2 and he will get emails in two listboxes below and record it in t_dci table source of the form.
the target is send email to those persons selected in the form
to : email1 & email2
subjet :""
body : ""
in the atachements db ..thank you for help
login : admin
pass : 1234
 

Attachments

  • prob3 db.accdb
    2.1 MB · Views: 93

theDBguy

I’m here to help
Staff member
Local time
Today, 01:13
Joined
Oct 29, 2018
Messages
21,496
Hi. Is this related to your other thread?
 

ryprobg

Member
Local time
Today, 09:13
Joined
Sep 3, 2022
Messages
59
Hi. Is this related to your other thread?
yes i try to solve this problem query1 not work
 

theDBguy

I’m here to help
Staff member
Local time
Today, 01:13
Joined
Oct 29, 2018
Messages
21,496
yes i try to solve this problem query1 not work
Can you please explain why Query1 doesn't work? If you're expecting Query1 to store the email data in the t_dci table, I told you that storing redundant data (storing information already stored in another table) is not a recommended approach.
 

ryprobg

Member
Local time
Today, 09:13
Joined
Sep 3, 2022
Messages
59
ok : how i can get emails for selected persons to use it in macro to send email to this persons
as auto generated email
make a button to run macro
help me plz
 

theDBguy

I’m here to help
Staff member
Local time
Today, 01:13
Joined
Oct 29, 2018
Messages
21,496
ok : how i can get emails for selected persons to use it in macro to send email to this persons
as auto generated email
make a button to run macro
help me plz
You would use Query1 to send the email in your macro. I prefer to use VBA, so I can't really tell you what that macro might look like. You might also use the DLookup() function or the equivalent macro action to get the email addresses from Query1.
 

Users who are viewing this thread

Top Bottom