Results 1 to 6 of 6
  1. #1
    WCStarks is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Sep 2016
    Posts
    314

    Subform won't allow edits to fields

    I have 3 tables and a query related to this issue.
    1) Assets
    2) Sites
    3) Assets_Trans (M-1 junction table between the Assets and Sites tables)
    4) A query which produces a sub-set of the junction table, called Assets_Curr_Trans, based on the most current junction record for each Asset.

    I have a continuous sub-form which combines key data from the Assets table, along with key data from their related Assets_Curr_Trans records, for a selected Site (Main Form). This sub-form will not allow me to modify data in any of its controls.

    The relationships between the tables/Queries are on normal key ID fields. The SQL query for this form is:
    Code:
    SELECT Assets.Category, Assets.Make, Assets.Model, Assets.Type, Assets_Curr_Trans.Trans_Type, Assets_Curr_Trans.Trans_Date, Assets.BarCode, Assets_Curr_Trans.Custodian, Assets.Group, Sites.ID, Assets_Curr_Trans.Site_ID, Assets.ID, Assets_Curr_Trans.Asset_ID, Assets_Curr_Trans.Comment
    FROM (Assets_Curr_Trans INNER JOIN Assets ON Assets_Curr_Trans.Asset_ID = Assets.ID) INNER JOIN Sites ON Assets_Curr_Trans.Site_ID = Sites.ID
    ORDER BY Assets.Category, Assets.Make, Assets.Model, Assets.Type, Assets_Curr_Trans.Trans_Date DESC;
    Why am I not permitted to edit data in the controls in this sub-form? Is this just the nature of the beast? All properties of the form related to modifying data within, are set to"Yes", and all the controls are "Enabled".

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    SOME queries, depending on the joins will NOT allow edits.
    The subform should be a simple 1-many on the Master Form ID.

  3. #3
    WCStarks is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Sep 2016
    Posts
    314
    So, I guess, in this case, it is the nature of the beast. Thanks

  4. #4
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Allen Browne has an excellent article on the more common reasons that some Queries are Read-Only:

    http://allenbrowne.com/ser-61.html

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

  5. #5
    WCStarks is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Sep 2016
    Posts
    314
    Thank you. I was aware of AllenBrowne's ELookup function, as someone in the form gave me a link to it. Allen seems to have produced a lot of tips and tricks.

  6. #6
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Allen, although now retired from all things Access, was really the godfather of Access...in fact, many of his articles are actually part of the official MS Access help articles! When something new to me arises, his website is the first place I look for help!

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

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

Similar Threads

  1. Additional Value List edits erasing previously entered fields
    By rshepard@shepardsearch in forum SharePoint
    Replies: 2
    Last Post: 06-27-2017, 07:19 AM
  2. Allow edits with exceptions
    By boboivan in forum Access
    Replies: 11
    Last Post: 05-30-2016, 07:27 AM
  3. Replies: 4
    Last Post: 07-17-2013, 01:11 PM
  4. Replies: 1
    Last Post: 06-04-2012, 12:43 AM
  5. Allow Edits on Subform
    By scoughlan in forum Programming
    Replies: 5
    Last Post: 01-16-2012, 02:12 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