Results 1 to 4 of 4
  1. #1
    hcruz is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2011
    Posts
    4

    Calling query SQL from VBA - Error 3326, Not Updateable


    I am trying something new in my database in that I would like to call ALL or at least most of my queries from VBA.

    I have managed to test that out with my first query successfully, however I get the error 3326 - this record is not updateable when I use the code. In the current state the user would need to End or Debug, which I would like to suppress if possible.

    Is there a problem with calling SQL code from VBA that can't be updated? It seems to me just a normal result of some query strucutres.

    Thank you to anyone who can offer advice or solutions.

    Heather

  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,726

  3. #3
    hcruz is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2011
    Posts
    4
    Thank you for the reply. I do understand why the query is not updateable, I am wondering why I get the error when I call the query SQL from VBA. I certainly do not get it when I run the query from the query design.

    I looking for a way to suppress that error.

    Thanks,
    Heather

  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,726
    I do not understand why a query would run from the query design interface, and the same query would not run from vba.
    Can you please post the query and related vba etc.

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

Similar Threads

  1. Non-Updateable Query
    By swalsh84 in forum Queries
    Replies: 4
    Last Post: 04-27-2011, 12:39 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. Syntax Error while calling sub: Expected: =
    By cowboy in forum Programming
    Replies: 3
    Last Post: 07-12-2010, 02:21 PM
  5. Replies: 0
    Last Post: 03-27-2010, 01:25 PM

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