Results 1 to 7 of 7
  1. #1
    astraxan is offline Novice
    Windows 7 Access 2007
    Join Date
    May 2010
    Posts
    7

    Unhappy this recordset is not updateable

    Hi, I have an sql query but when i try to edit anything, i get the message "the recordset is not updateable". why is that?



    i have 2 tables: family 1---->oo members

    and this is the query.

    SELECT DISTINCT family.id, family.surname, family.city, family.phone
    FROM family INNER JOIN members ON family.id=members.id
    WHERE (((family.phone) In (SELECT [phone] FROM [family] As Tmp GROUP BY [phone] HAVING Count (*)>1) And (family.phone)<>"-"));

    any ideas?
    Last edited by astraxan; 05-24-2010 at 02:07 PM.

  2. #2
    kimmer is offline Competent Performer
    Windows 7 Access 2010 (version 14.0)
    Join Date
    May 2010
    Posts
    100
    It's your Group By clause... these are always read-only.

  3. #3
    astraxan is offline Novice
    Windows 7 Access 2007
    Join Date
    May 2010
    Posts
    7
    The problem is with distinct. when i put it off, the query becomes updateable... but how can i hide repeated records?

  4. #4
    kimmer is offline Competent Performer
    Windows 7 Access 2010 (version 14.0)
    Join Date
    May 2010
    Posts
    100
    Are you sure you can update a query that groups? And yes, Distinct makes it read only also. I don't know if changing it to distinctrow will help, as I don't understandyour database.

    http://allenbrowne.com/ser-61.html
    http://cc.bingj.com/cache.aspx?q=mic...b4787,933dc42d
    http://cc.bingj.com/cache.aspx?q=mic...979bd,9c1f71bf
    http://cc.bingj.com/cache.aspx?q=mic...e8043,c33e94bb

  5. #5
    astraxan is offline Novice
    Windows 7 Access 2007
    Join Date
    May 2010
    Posts
    7
    for example, if the two tables are these,

    family


    id surname city phone
    1 brown london 11111
    2 green paris 22222
    3 yellow athens 33333
    4 red berlin 22222


    members

    id id_memb name

    1 1 george
    2 2 john
    2 3 mary
    3 4 jim
    4 5 helen

    then the query WITHOUT distinct gives:

    id surname city phone
    2 green paris 22222
    2 green paris 22222
    4 red berlin 22222

  6. #6
    astraxan is offline Novice
    Windows 7 Access 2007
    Join Date
    May 2010
    Posts
    7
    what i want to do, is to find duplicate records, but each one to be shown only once.

  7. #7
    astraxan is offline Novice
    Windows 7 Access 2007
    Join Date
    May 2010
    Posts
    7
    It worked with DISTINCTROW!! thank you!

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

Similar Threads

  1. Replies: 0
    Last Post: 03-27-2010, 01:25 PM
  2. Replies: 1
    Last Post: 11-13-2009, 03:03 AM
  3. This Recordset Is Not Updateable
    By botts121 in forum Access
    Replies: 1
    Last Post: 11-11-2009, 05:43 PM
  4. 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
  5. This record set is not updateable,
    By MFS in forum Forms
    Replies: 1
    Last Post: 03-24-2009, 08:46 PM

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