+ Reply to Thread
Results 1 to 2 of 2

update query updating more records than there are in the database

  1. #1
    Registered User
    Join Date
    10-01-2014
    Location
    East Lansing, MI
    MS-Off Ver
    Office 2007
    Posts
    16

    update query updating more records than there are in the database

    I am doing an update query on a database that has 2,589 records in it. When I run the update, it says it is updating 2,665 records. The update query is:

    UPDATE Athena LEFT JOIN Providers ON Athena.[HT Project Code] = Providers.[Project Code] SET Athena.OrgRefID = [Providers]![OrgRefID]
    WHERE (((Athena.OrgRefID) Is Null Or (Athena.OrgRefID)=""));

    The Athena table has 2,589 records in it and the Providers table has 319 records in it.

    Any idea on why it is trying to update 2,665 records and where are the additional 76 records?

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,176

    Re: update query updating more records than there are in the database

    Some queries ,due to their joins, will do that.
    It will update the same record more than once, but the same value.
    So, nothing to worry about.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 05-16-2014, 12:58 AM
  2. Query Access database and return all records to Excel
    By bfs3 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-18-2014, 11:01 PM
  3. Search and Update records in database
    By Manoqs in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-20-2012, 04:25 AM
  4. database sheet update with new records
    By sabhai in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-22-2012, 05:57 AM
  5. Creating a form to query and update database
    By pizlam in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-03-2010, 02:37 AM
  6. Database Query to update the spreadsheet
    By gaby58 in forum Excel General
    Replies: 0
    Last Post: 05-12-2008, 12:10 PM
  7. Use Excel to make an update query to another database table?
    By Reigning in Seattle in forum Excel General
    Replies: 2
    Last Post: 04-14-2005, 02:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1