cc varible on e.mail (1 Viewer)

rainbows

Registered User.
Local time
Yesterday, 16:42
Joined
Apr 21, 2017
Messages
425
the
1635782379095.png


this form has a combo box with people name in " send e.mail to " and after selecting that name the e.mail is sent to that person what I would like to do if possible is cc the manager of that company ( this database is used for 3 companies ) so if field " issues company " has PPI-ENGINEERING in it then CC steve,kirk @ ppi-engineering , if it has API - ENONEERING in it then CC steve.kirk @ api-enginnering is it possible to do this with an if statement or other way
thanks steve
 

theDBguy

I’m here to help
Staff member
Local time
Yesterday, 16:42
Joined
Oct 29, 2018
Messages
21,469
In the combo for issues company, add a column for the cc email address and then use it in your code. For example:
Code:
.Cc=Me.ComboName.Column(x)
Where x is the column number for the email address minus 1.
 

rainbows

Registered User.
Local time
Yesterday, 16:42
Joined
Apr 21, 2017
Messages
425
1635788247099.png

I have added a column in the company table and to the macro but I must have done something wrong as this just copies the words into my e.mail and not the e.mail address thanks steve
 

Attachments

  • 1635788365356.png
    1635788365356.png
    341.1 KB · Views: 339

theDBguy

I’m here to help
Staff member
Local time
Yesterday, 16:42
Joined
Oct 29, 2018
Messages
21,469
Try changing it to this:
Code:
=[Company].[Column](2)
 

rainbows

Registered User.
Local time
Yesterday, 16:42
Joined
Apr 21, 2017
Messages
425
thank you. works great. now next part of the puzzel
 

Users who are viewing this thread

Top Bottom