Results 1 to 3 of 3
  1. #1
    CammieE is offline Novice
    Windows 11 Access 2016
    Join Date
    Mar 2023
    Posts
    1

    Subform is not populating table

    I am using a subform with a combo box to auto-populate two fields. Once an item ID is selected, the description of the item and unit of measure (UOM) is auto-populated. The description nor the UOM is being populated in my table. I have three tables: Inventory, Projects, and Summary Bill of Materials (SBOM) The item ID, description and UOM should be populating the SBOM table. However, only the item ID is populating it.

    Thoughts? Suggestions?

  2. #2
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,784
    Likely because you're not committing the record. You'd have to leave the record to update it automatically. That can be done by
    - moving focus to the next or previous or new record on the subform
    - moving focus to a control or record on the main form
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #3
    Join Date
    Apr 2017
    Posts
    1,679
    There is not enough information!

    In form-subform setup, you have either main form based on some table, or unbound main form. And you have a subform based on another table, where primary key of this table is matching either with field in main form's source table in case of bound main form, or with unbound control on main form. The records and fields in subform are populated automatically whenever the linked control in main form does change.

    From your post i can't understand, where is your combo - in main form, or in subform. When it is in subform, then only way selecting a new value in it does change what is displayed in other controls in subform is those controls being unbound ones, which have some formulas as source. No way this is changing other bound controls automatically. When it is in main form, and it must be a master control, then the subform not updating means, that you haven't set LinkMasterField and LinkChildFields properties of subform properly.

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

Similar Threads

  1. Populating a Subform from a Temporary Table
    By Simbiose in forum Programming
    Replies: 11
    Last Post: 11-10-2020, 04:10 PM
  2. Replies: 2
    Last Post: 05-17-2019, 09:21 AM
  3. Populating a table from a form/subform
    By Fish218 in forum Forms
    Replies: 6
    Last Post: 02-09-2012, 08:52 AM
  4. Replies: 5
    Last Post: 11-16-2011, 07:30 PM
  5. Replies: 1
    Last Post: 08-13-2011, 12:03 AM

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