Results 1 to 8 of 8
  1. #1
    Exsubsailor is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Mar 2017
    Posts
    11

    Unedittable query


    water.zip

    I am using combo boxes with lookup tables in my forms V_DETAILS AND H_DETAILS. When I make the source for the forms the tables of the same names (no query), I am able to edit/input data. If I change the source of the forms to the Queries of the same names (two related tables), I cannot edit through the forms. If I run the queries separately, I also can't edit the data. What am I missing?

  2. #2
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    It sounds like you have queries which are not updateable.
    Can you post the SQL code of your queries (I am unable to download anything from my current location).

    BTW, here is a listing of reasons why queries may not be updateable:
    http://allenbrowne.com/ser-61.html
    See if your query falls into any of those categories.

  3. #3
    Exsubsailor is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Mar 2017
    Posts
    11
    SELECT V_DETAILS.V_TYPE, Points.*
    FROM Points RIGHT JOIN V_DETAILS ON Points.PNO = V_DETAILS.PNO;

  4. #4
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Do both of your tables have primary keys?
    What kind of relationship exists between the two tables (one-to-one, one-to-many, many-to-many)?

    The Right Join could be playing a role here.
    If you change it to an Inner Join, does it become updateable (I know that may not be what you eventually want to do, but try it out and see what happens)?

  5. #5
    Exsubsailor is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Mar 2017
    Posts
    11
    inner join has no effect, the problems remains. Yes there is a primary key (ID) in each table but that is not the related fields.

  6. #6
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    So, what kind of relationship exists between the two tables when you JOIN on the PNO fields?
    Many-to-Many relationships create queries that are not updateable.

  7. #7
    Exsubsailor is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Mar 2017
    Posts
    11
    SOLVED....it was that neither of the fields in my joined tables were unique values. thanks for the guiding light!

  8. #8
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    SOLVED....it was that neither of the fields in my joined tables were unique values. thanks for the guiding light!
    Yep, that would cause a many-to-many relationship.

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

Tags for this Thread

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