| re: Emails from access
Thanks Chip R. for the response.
I currently have an access query that populates the "MyEmailAddresses" query, which in turn is used in the SendMail module,
i.e. Set MailList = db.OpenRecordset("MyEmailAddresses")
I've created a MailForm, on which i have 5 combo boxes, which allow a user to pick one reviewer from each job title to assign to the project (not every project needs one from each job title, but you would just skip that combo box).
Once a user is selected, I display their email address in a text box field.
I then want to take ONLY the email addresses selected on this form and put them into the query that is used above by the SendMail module.
The current "MyEmailAddresses" file includes all reviewers selected.
How can I get my query to only select the value returned from the form's text box for each of the 5 combo box selections?
I've used "Like" in the Criteria of other queries to pull the data from combo box selections, but I'm not exactly sure how the Like statement would work here when I want to pull multiple values of the same type from multiple boxes.
I've attached a screenshot of my Mail Form and the table that it pulls from.
For the time being I have all fields of the email set to my email address to avoid it sending to the real recipients during testing.
I know that part of it works because the correct email address being displayed in the text box on the form.
Thanks.
|