[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.3

Scroll through and send notice to routing recipients

Asked by valmatic in Access Coding/Macros, Access Architecture/Design, SQL Query Syntax

Tags: MSAccess2000, VBA

HI.  I have an Access2k database that I've set up email routing in.  My code should cycle through the routing records (via a query) and pump out an email notice to each person in that routing list.  It's not working and I'm getting the attached error.  Can anyone see what I'm doiing wrong?  
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
Private Sub NotifyRoutings_Click()
 
Dim ECN As String
Dim UserID As String
Dim rst01 As ADODB.Connection
Set rst01 = CurrentProject.Connection
Dim myRecordSet As New ADODB.Recordset
myRecordSet.ActiveConnection = rst01
        
myRecordSet.Open "[qryRoutingNotice]"
 
myRecordSet.MoveFirst
        
    Do Until myRecordSet.EOF
                            
    If myRecordSet.Fields(3).Value = False Then                  '(If ECN Routing is Active)
       
        ECN = myRecordSet.Fields(1).Value
        UserID = myRecordSet.Fields(2).Value
                                                           
        'SEND EMAIL to Routing Recipient
        Dim Outlook
        Set Outlook = CreateObject("Outlook.Application")
    
        Dim Message 'As Outlook.MailItem
        Set Message = Outlook.CreateItem(olMailItem)
        With Message
    
        .Subject = "ECN Notice"
        .Body = "ECN NO. " + [ECN] + ", has been created.  Please sign into the ECN database and review. "
        .Recipients.Add ([UserID])
    
        .Send
        End With
    End If
                          
    myRecordSet.MoveNext
        
    Loop
RoutingNoticeFlag = True
MsgBox "Notice has been sent to all routing recipients.  This form will now close", , "Success"
DoCmd.Close
 
End Sub
Attachments:
 
Error in code on execute
 
[+][-]11/04/09 02:12 AM, ID: 25737836Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: Access Coding/Macros, Access Architecture/Design, SQL Query Syntax
Tags: MSAccess2000, VBA
Sign Up Now!
Solution Provided By: harfang
Participating Experts: 3
Solution Grade: A
 
[+][-]10/30/09 05:33 PM, ID: 25707751Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]10/30/09 05:39 PM, ID: 25707776Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/31/09 08:29 AM, ID: 25710107Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/31/09 08:30 AM, ID: 25710115Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/01/09 06:47 AM, ID: 25713828Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/03/09 08:39 AM, ID: 25730754Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/03/09 08:56 AM, ID: 25730965Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/03/09 10:34 AM, ID: 25731944Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/04/09 10:39 AM, ID: 25742387Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/04/09 02:23 PM, ID: 25744685Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92 - Hierarchy / EE_QW_3_20080625