Results 1 to 3 of 3
  1. #1
    Oscar.Ingalls is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2012
    Location
    Washington State USA
    Posts
    14

    Trying to populate fields on a form from a combo box... Zero VBA skill

    I'll start off saying that I am getting a VBA book, but for expediency I need a simple solution or a stoopid proof walk thru. I know just enough to get myself into trouble... and know that I am WAY over my head.



    Training database, tblemployees, tbltasks, tbltaskstoemployees. Apend qry (qrytaskstoemployees) makes a record for each employee where the task and the employee have the same workcenter, or all in the case of generic training tasks.

    frmtrainingupdate is a subform showing all records from tbltaskstoemployees for the employee record currently selected on the parent form. Trying to select employee to update via combo box that derives names from tblemployees, then populate subform with the list of tasks for the employee that was selected in the combo box. tblemployees and tbltaskstoemployees share ID key but not 1 to 1 as tbltaskstoemployees has multiple records per employee based on how ever many training tasks are assigned to them.

    Happy New Year... and thank you for any assistance.

    Oscar

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,960
    What do you mean by 'training tasks are assigned to them'. Where are the training tasks selected? 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
    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
    If I understand you correctly, you already have your Main Form/Subform set up, and only need a Combobox to retrieve a Record in the Main Form, along with the related Subform Records. If this is correct, Add a Combobox to your Form’s Header, and when the Combobox Wizard pops up, select "Find a record based on the value I selected in my combobox," then follow the Wizard's instructions as you go down the Yellowbrick Road!

    When you make a selection from the Combobox, the appropriate Main Form Record should appear, along with the related Records in the Subform.

    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. Replies: 5
    Last Post: 11-27-2012, 03:56 AM
  2. Replies: 8
    Last Post: 12-05-2011, 01:55 PM
  3. Replies: 63
    Last Post: 09-16-2011, 04:55 PM
  4. Replies: 2
    Last Post: 12-07-2010, 12:32 PM
  5. using a combo box to populate fields then save
    By crazy1701d in forum Forms
    Replies: 2
    Last Post: 05-19-2010, 07:22 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