ethan.geerdes
Registered User.
- Local time
- Yesterday, 18:21
- Joined
- Jun 4, 2015
- Messages
- 116
Hello everyone,
I have a button on my form that will open up outlook and get an email ready to send, but I want it to auto the information that was selected on the form. Essentially it is used as a notification.
I would like for the "To" field be auto filled with the person I choose in a combobox. ( I have a table with all the information and the combobox is querying that table)
I currently have it commented out because I don't know what I should do for the query and have been manually typing it.
I am not sure if it is even possible but that is why I bring it up to the great people on this wonderful forum.
I have a button on my form that will open up outlook and get an email ready to send, but I want it to auto the information that was selected on the form. Essentially it is used as a notification.
Code:
Dim olApp As Outlook.Application
Dim objMail As Outlook.MailItem
Set olApp = Outlook.Application
Set objMail = olApp.CreateItem(olMailItem)
With objMail
.Subject = "assignment"
'.To =
.Body =
.Display
End With
I would like for the "To" field be auto filled with the person I choose in a combobox. ( I have a table with all the information and the combobox is querying that table)
I currently have it commented out because I don't know what I should do for the query and have been manually typing it.
I am not sure if it is even possible but that is why I bring it up to the great people on this wonderful forum.