?
Solved

Error when Updating with Updatebatch

Posted on 2002-05-04
4
Medium Priority
?
217 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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

752 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