Results 1 to 5 of 5
  1. #1
    swalsh84 is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jan 2010
    Posts
    36

    Non-Updateable Query

    I searched quite a bit and went through the normal answers of securities and permissions. I still cannot make this query work. It's simple and was working one day, and then a few days ago it broke. Nothing significant has changed since then. I have tried recreating the query from scratch (all on field of it), but still to no avail.



    Any thoughts?

    Code:
    UPDATE tbl_ERC_Cases INNER JOIN dbo_INV ON tbl_ERC_Cases.InvestorCode = dbo_INV.INV SET tbl_ERC_Cases.InvestorName = dbo_INV!INVESTOR;

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    You could try (untested)

    UPDATE T
    SET T.InvestorName = X.INVESTOR
    FROM tbl_ERC_Cases T INNER JOIN dbo_INV X
    ON T.InvestorCode = X.INV

  3. #3
    swalsh84 is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jan 2010
    Posts
    36
    I'm not quite sure what you're doing here... It looks like there are some other tables involved than the two I have listed.

    Is that the case?

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    No, there are no new tables. I have used aliases on your tables and adjusted the syntax a little. I did change your ! to a . in one place.

    What has changed since the query worked?
    Have you seen this by Allen Browne?
    http://allenbrowne.com/subquery-02.html
    Last edited by orange; 04-27-2011 at 12:36 PM.

  5. #5
    swalsh84 is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jan 2010
    Posts
    36
    I had not seen that by Allen Browne, but I did review the info and this not a subquery. I have no idea what changed. It's a simple query to pull one field from one table and put it on another matching on the common field from both. Access makes me angry sometimes when it overthinks itself...

    OK. Narrowed it down a bit more. The query runs just fine in the production version, but not in the development version. Any thoughts on where to start pulling things apart to identify the differences?

    What's even more interesting is that when I recreate the query in the dev version, it throws the same error. I tried repairing the MDB file with no changes.

    Not sure what's going on with that MDB file, but I exported the single query to the production version and it ran just fine... Sigh...
    Last edited by swalsh84; 04-27-2011 at 12:47 PM. Reason: Addition of errors. Resolution.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Updateable query rules
    By gg80 in forum Queries
    Replies: 7
    Last Post: 01-05-2011, 11:50 PM
  2. Operation must use an updateable query
    By skaswani in forum Queries
    Replies: 0
    Last Post: 12-23-2010, 11:59 PM
  3. Operation Must use an Updateable Query
    By Lady_Jane in forum Queries
    Replies: 2
    Last Post: 12-14-2010, 03:02 PM
  4. Replies: 0
    Last Post: 03-27-2010, 01:25 PM
  5. Query decided it didn't want to be updateable anymore
    By tylerthompson in forum Queries
    Replies: 0
    Last Post: 07-23-2009, 09:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums