[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

Add New Specific Records to Existing Table

Asked by ZPal in Windows 2000 Operating System, Microsoft Access Database, Access Coding/Macros

Tags: MS Access 2003

I'm trying to add new records from one table to another, matching them up by the Primary key "AcctID" for each table. I have a query that creates a new table each month (tblMonthlyNoTestActive) and I need to add these records to the live table (tbl2067) as new additional records.

I'm unable to get the below code to work and I may be out in left field to begin with. Any help would be appreciated.

Thanks in advance.

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:
Private Sub cmdStep2_Click()
 
    Dim CurConn As New ADODB.Connection
    Dim rsUpdateMemo As New ADODB.Recordset
    Dim rs2067 As New ADODB.Recordset
    
    Set rsUpdateMemo = New ADODB.Recordset
    rsUpdateMemo.CursorType = adOpenStatic
    rsUpdateMemo.LockType = adLockOptimistic
    rsUpdateMemo.Open "SELECT * FROM tblMonthlyNoTestActive", CurConn, , , adCmdText
    
    Set rs2067 = New ADODB.Recordset
    rs2067.CursorType = adOpenStatic
    rs2067.LockType = adLockOptimistic
    rs2067.Open "SELECT * FROM tbl2067", CurConn, , , adCmdText
    
    While Not rsUpdateMemo.EOF
        rs2067.Filter = "AcctID=" & rsUpdateMemo("AcctID")
    If Not rs2067.EOF Then
        rs2067.AddNew
        rs2067("2067Date") = Now()
        rs2067("Comment1") = "Client did not participate in our monthly systems test on " & rsUpdateMemo("1stDate") & "at " _
        & rsUpdateMemo("1stTime") & ", " & rsUpdateMemo("2ndDate") & "at " & rsUpdateMemo("2ndTime") & "and " _
        & rsUpdateMemo("3rdDate") & "at " & rsUpdateMemo("3rdTime") & "." & vbCrLf & _
        "Unable to contact client or responders."
    Else
    Wend
               
    rsUpdateMemo.Close
    rs2067.Close
    MsgBox ("Completed")
 
End Sub
[+][-]09/15/09 12:15 PM, ID: 25338216Expert 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.

 
[+][-]09/15/09 12:26 PM, ID: 25338340Author 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.

 
[+][-]09/15/09 02:07 PM, ID: 25339530Author 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.

 
[+][-]09/15/09 05:27 PM, ID: 25340834Accepted 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: Windows 2000 Operating System, Microsoft Access Database, Access Coding/Macros
Tags: MS Access 2003
Sign Up Now!
Solution Provided By: ErezMor
Participating Experts: 1
Solution Grade: A
 
[+][-]09/15/09 05:49 PM, ID: 25340914Author 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.

 
[+][-]09/16/09 12:22 PM, ID: 25349105Expert 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.

 
[+][-]09/16/09 12:32 PM, ID: 25349194Author 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.

 
 
Loading Advertisement...
20091021-EE-VQP-81 - Hierarchy / EE_QW_3_20080625