Results 1 to 5 of 5
  1. #1
    klnlsu is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Apr 2015
    Posts
    107

    Controlling subform data with a combo box on the main form

    I have created a form that displays a single Process Code record on a form. I use a combo box to select the Process Code ID I want to display. I have placed a subform on the main form that displays all inventory items that have the Process Code. The problem is that this is only working if I select the first Process Code record (probably because it chooses that record by default). If I choose any other Process Code record, the subform doesn't display anything. It has to be a problem with my link between the form and subform, because I can open the form, select any record, then open the subform separately, and the item records list properly. In the subform properties, I have the Link Master Fields property set to CodeID in the Process Code table that is the data source for the main form, and I have the Link Child Fields property set to CodeID in the query that is the data source for the subform and uses the Process Code table as its primary source of data. The combo box is unbound. If I try to assign the CodeID field as the control source for the combo, it will not let me select a Process Code record. It just beeps at me. Any suggestions? Need more info?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,633
    Need to review code and/or query/forms design.

    If you want to provide db for analysis, follow instructions at bottom of my post.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    klnlsu is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Apr 2015
    Posts
    107
    attached is zipped DB (I hope I did it right)

    ProdSchd - Copy.zip

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,633
    The tables are links and since you did not provide the backend I cannot review table design and there is no data to test with. There are no Relationships set. I do not understand how data is related.

    The form has 5 levels of nested forms. The most I've ever seen

    Having a field in every table with the same name (CodeID) can be confusing.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    klnlsu is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Apr 2015
    Posts
    107
    Thanks for looking at this for me, but I'm afraid it was just a stupid mistake on my part. I made some revisions on my form and accidentally gave my key field a different name so my query wasn't finding it!

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

Similar Threads

  1. Replies: 12
    Last Post: 08-26-2012, 02:09 PM
  2. Replies: 3
    Last Post: 10-10-2011, 06:33 PM
  3. Controlling Subform from Main Form
    By SteveF in forum Forms
    Replies: 5
    Last Post: 07-01-2011, 05:32 PM
  4. Replies: 5
    Last Post: 01-02-2011, 10:09 AM
  5. Replies: 0
    Last Post: 08-17-2008, 12:19 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