Results 1 to 6 of 6
  1. #1
    onechriswhite is offline Novice
    Windows Vista Access 2002
    Join Date
    Jul 2010
    Posts
    22

    Cool Updating using form bound to a query

    Hi


    I have a form whose data comes from a query. This query draws data from four different tables, and I have noticed on this forum that there are issues as to whether you can update records using queries like this.

    I am able to update data directly in my query so I thought I had got around the problem. I did this by changing some properties of the query and I think it is the "recordset type" property on the query (changed to "Dynaset (inconsistent updates)") (whatever that is), that is enabling me to do this. However, when I try to change data in my form, it doesn't let me make changes in the fields at all even though I can do so in the query.

    I want to be able to make changes to the data in the form FRMPupilAchievementByPiece. Any idea on how I can do this? My query only has inner joins, if that's important. I know a bit, but obviously not enough! Any help appreciated.
    Thanks
    (PS I deleted most of the DB in the uploaded copy to reduce its size. Any better way?)

  2. #2
    dsmacs is offline Advanced Beginner
    Windows XP Access 2010 (version 14.0)
    Join Date
    Oct 2009
    Location
    Perth Western Australia
    Posts
    52
    Hi Chris,

    Can you provide details of the process? When uploading a Database, zip it first to reduce size. Can you reattach with more data and I will have a look. I think you will need a couple of subforms to accomplish what you are after.

    Regards
    Darren

  3. #3
    onechriswhite is offline Novice
    Windows Vista Access 2002
    Join Date
    Jul 2010
    Posts
    22
    Zip it - thanks!

    DB is attached.

    I need to be able to go from FRMActivity and call up FRMPupilAchievementByPiece, such that the data in this form is filtered by AssessmentPieceID, and then edit the data in the "Security" Field. This field is from TBLPupilAchievement.

    Previously I have achieved a similar result by opening an interim form and then usig a subform but I really don't want the process to be that slow!

    Thanks
    Chris

  4. #4
    dsmacs is offline Advanced Beginner
    Windows XP Access 2010 (version 14.0)
    Join Date
    Oct 2009
    Location
    Perth Western Australia
    Posts
    52
    Hi Chris,

    Inserted a subform for the FRMPupilAchievementByPiece, it allows updates;-



    Cheers
    Darren

  5. #5
    onechriswhite is offline Novice
    Windows Vista Access 2002
    Join Date
    Jul 2010
    Posts
    22

    Cheers!

    Thanks, that seems to work - but why it does, I don't know!

    I'm now trying to change it so that Pupil Name appears in the master form and all the relevant focusIDs and fields from TBLPupilAchievement appear in the subform. Also, I only want those FocusIDs on the subform that appear in TBLAssessmentPieceFocus for the AssessmentID on the master form. I'll let you know how I get on but would appreciate your opinion n the result

    Don't ask for a lot, do I?!

    Still baffled as to why an update is allowed in a query but not in a form linked directly to that query.

    Thanks for your work - really appreciated

    Chris

  6. #6
    onechriswhite is offline Novice
    Windows Vista Access 2002
    Join Date
    Jul 2010
    Posts
    22
    I've changed it around now so that it has a subform like you suggested, but behaves like a single form. It seems to work but I have had to set the locks to "Dynaset (inconsistent)" - if anyone knows what the implications of this are, I would be glad to understand it!

    See attached. I'm still at a loss to understand why the single form didn't allow updates. Should I just get over it and move on?!

    Thanks again
    Chris

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

Similar Threads

  1. Form Updating
    By stevman22889 in forum Forms
    Replies: 3
    Last Post: 07-20-2010, 12:07 PM
  2. Replies: 0
    Last Post: 05-09-2010, 08:43 AM
  3. Updating a query
    By bailey537 in forum Programming
    Replies: 1
    Last Post: 07-16-2009, 10:30 AM
  4. Link unbound form to bound form
    By Papote in forum Forms
    Replies: 0
    Last Post: 09-25-2008, 07:42 PM
  5. Updating SQL server form Access form?
    By slash75 in forum Forms
    Replies: 1
    Last Post: 09-06-2008, 02:39 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