?
Solved

Error when Updating with Updatebatch

Posted on 2002-05-04
4
Medium Priority
?
225 Views
Last Modified: 2008-02-01
I am using a disconnected recordset.
I open the recordset with RIGHT OUTER JOIN

Sql = "select tab1.au_id, tab1.f_name, tab2.au_id, tab2.address from tab1 " & _
            "RIGHT OUTER JOIN tab2 on tab2.au_id = tab1.au_id " & _
            "ORDER BY tab1.au_id "
    rs.CursorLocation = adUseClient
    rs.CursorType = adOpenStatic
    rs.Open Sql, cn, adOpenStatic, adLockBatchOptimistic

When I try to update with rs.updatebatch field -tab1.f_name it updated successfully, but when I try to update field - tab2.address then it raising error as
"-2147467259 Insufficient key column information for updating or refreshing"

Any help whould be greatly appreciated.

Thanks
0
Comment
Question by:srichelikani
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 400 total points
ID: 6990466
Joined tables cannot be both updated. You can only update one or the other.
0
 
LVL 5

Expert Comment

by:rkot2000
ID: 6991438
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 7060672
This question appears to be abandoned. A question regarding it will be left in the Community Support
area; if you have any comment about the question, please leave it here.

Unless there is objection or further activity, one of the moderators will be asked to accept the comment
of <emoreau>.

The link to the Community Support area is:
http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt

DO NOT ACCEPT THIS COMMENT AS AN ANSWER.
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 7065866
Thanks, emoreau  for your help here.

I have finalized this question, and will monitor it for comments.

Moondancer - EE Moderator
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question