E
Eka1618
Hello,
In a form called frmQueue, I have it set up to show one record at a time.
When a person closes this from by clicking btnAccept, It sends an e-mail to
one person called the Requestor. What I would like this form have do now is
also send out e-mails to those who were assigned tests.
I have a listbox called lboConductor that can only hold one list item for
each record. lboConductor has 3 fields, one being their e-mail address. I
have placed the following code in the AfterUpdate event for the listbox, but
it still will not work in my situation.
A person who is scheduling a test may go back to a previous record that he
filled out and change who he wants to conduct the test before click
btnAccept, the code that I have will only keep adding to the String that I
have to grab the e-mail addresses. At the time btnAccept is clicked, I want
it to grab each e-mail name for all the records that show up in this form and
send individual e-mails to each test conductor.
I am not sure if this is a little too complicated, but it would be ideal to
send each person who was just scheduled a confirmation of somesort. I am not
sure how to go about this.
Before looking at my code, just note that it is by no means complete, I just
started with this but then realized that It wouldn't work... I just wanted to
try and explain as best as I can what I want to do.
If anyone as any suggestions, please let me know, Thank you!
Private Sub lboConductor_AfterUpdate()
Dim varItem As Variant
For Each varItem In Me!lboConductor.ItemsSelected
eNames = eNames & Chr(34) & frm!lboConductor.Column(2, varItem) &
Chr(34) & ","
Next varItem
End Sub
In a form called frmQueue, I have it set up to show one record at a time.
When a person closes this from by clicking btnAccept, It sends an e-mail to
one person called the Requestor. What I would like this form have do now is
also send out e-mails to those who were assigned tests.
I have a listbox called lboConductor that can only hold one list item for
each record. lboConductor has 3 fields, one being their e-mail address. I
have placed the following code in the AfterUpdate event for the listbox, but
it still will not work in my situation.
A person who is scheduling a test may go back to a previous record that he
filled out and change who he wants to conduct the test before click
btnAccept, the code that I have will only keep adding to the String that I
have to grab the e-mail addresses. At the time btnAccept is clicked, I want
it to grab each e-mail name for all the records that show up in this form and
send individual e-mails to each test conductor.
I am not sure if this is a little too complicated, but it would be ideal to
send each person who was just scheduled a confirmation of somesort. I am not
sure how to go about this.
Before looking at my code, just note that it is by no means complete, I just
started with this but then realized that It wouldn't work... I just wanted to
try and explain as best as I can what I want to do.
If anyone as any suggestions, please let me know, Thank you!
Private Sub lboConductor_AfterUpdate()
Dim varItem As Variant
For Each varItem In Me!lboConductor.ItemsSelected
eNames = eNames & Chr(34) & frm!lboConductor.Column(2, varItem) &
Chr(34) & ","
Next varItem
End Sub