Results 1 to 6 of 6
  1. #1
    scoughlan is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2012
    Location
    London
    Posts
    13

    This Recordset Is Not Updateable

    I have a query created from 2 linked tables (see attached screen dump). If I create a new record I can fill in the fields from the tblPatients but not those form tblPlanningList. I went through Roger's Access Blog which was very helpful and I found that following his solution no.5 under Recordsets Are Updateable Under Certain Conditions does indeed work.



    http://rogersaccessblog.blogspot.com...eable-why.html

    That is, if I complete the fields from the first table, then save, it then allows me to completed the fields from the second table. Is there anyway to make this automatic? Sorry for being dumb: I'm just new at this!

  2. #2
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    Can you give an example of what you want to do? Of course, a PatientID has to exist in tblPatients before you can create a PlanningList entry for that Patient.

  3. #3
    scoughlan is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2012
    Location
    London
    Posts
    13
    Well, in the query it's not very intuitive for the user to add the first three fields, and then know they have to save before adding the rest of the fields. I just wondered if there was a way to make Access automatically create a blank record for the second table, so the user just tabs accross? Or, am I using the wrong device? Would it work in a form? I created a form with a subform with some of the fields from each, and that works, but all I really want is a datasheet line that users tab across and fill. I'm beginning to regret separating the data into 2 tables, but it's to help avoid duplicates of the patients. Each patient can have many Planning Records but each Planning Record mus only have one Patient. Thanks for your help, by the way.

  4. #4
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    ok lets say you have 3 textboxes:
    txt1
    txt2
    txt3

    txt1 and txt2 are for the parent table and txt 3 is for the child table. In the AfterUpdate of txt2 force a save with:
    If Me.Dirty Then Me.Dirty = False.
    Source

  5. #5
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    The problem is due to the fact that you are dealing with a one to many situation. I would be using a form/subform for this but if you want the quick way to deal with it so you can have them all on a single line - just open the query in design view, right-click on the gray area in the Query By Example Grid where the table shows up and select PROPERTIES. Then change the Recordset Type from Dynaset to Dynaset (Inconsistent Updates).

  6. #6
    scoughlan is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2012
    Location
    London
    Posts
    13
    Thanks Bob, that's amazing. Such an easy fix and it works perfectly now!

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

Similar Threads

  1. recordset not updateable
    By Lady B in forum Access
    Replies: 2
    Last Post: 12-12-2011, 02:55 PM
  2. Recordset not updateable
    By shiphtfour in forum Import/Export Data
    Replies: 13
    Last Post: 12-16-2010, 01:31 AM
  3. Recordset not updateable
    By jgelpi16 in forum Forms
    Replies: 3
    Last Post: 09-20-2010, 09:50 AM
  4. this recordset is not updateable
    By astraxan in forum Queries
    Replies: 6
    Last Post: 05-24-2010, 02:06 PM
  5. This Recordset Is Not Updateable
    By botts121 in forum Access
    Replies: 1
    Last Post: 11-11-2009, 05:43 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