Solved

Error when Updating with Updatebatch

Posted on 2002-05-04
4
211 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 100 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

Technology Partners: 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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

691 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