Results 1 to 2 of 2
  1. #1
    jomoan58 is offline Novice
    Windows XP Access 2003
    Join Date
    Jul 2010
    Posts
    1

    Red face auto populate mutiple fields

    I need some input regarding the following:

    I am trying to populate multiple fields on a form by selecting a single item from a look-up list. But it's really not a simple as this.

    In my table I have a maintenance code that is tied to multiple equipment codes. Each equipment code needs to be recorded as a single piece of data. What I am trying to do is create a form where the user can select from a look-up list the maintenance code to populate the maintenance code field and then the associated equipment code fields will auto populate with only one equipment code per field.

    I do not code..at all. I've included a diagram to help demonstrate what I am trying to do.



    Thank You.

    PS I apologize in advance for any breech of "forum protocol"

  2. #2
    esglover is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2010
    Posts
    3
    I did something similar in my database.

    First (if you don't already have a table that has this information) I would make a Select query that pulls all of the necessary info together. Each row should contain the Maintenance code along with all of the Equipment codes that you want to update when the maintenance code is selected.

    Example: (one row of data with header)

    Maintenance Code Equipment Code 1 Equipment Code 2 Equipment Code 3
    000000000000156 000000000000024 000000000001489 000000000002261

    Then make an update query and set it to run on the After Update event for the Maintenance code lookup list. In this update query you should update Equipment Code 1, 2, 3, etc to the value in your select query where Maintenance code on your form equals the Maintenance code in your select query.

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

Similar Threads

  1. auto populate combo field?
    By myboii in forum Access
    Replies: 8
    Last Post: 07-09-2010, 05:46 AM
  2. Auto-Populate Combo box
    By vincenoir in forum Forms
    Replies: 3
    Last Post: 10-14-2009, 07:06 AM
  3. Replies: 3
    Last Post: 10-05-2009, 07:22 AM
  4. auto populate and table relationships
    By jmarti57 in forum Access
    Replies: 0
    Last Post: 11-09-2008, 09:50 PM
  5. Auto populate fields on a form
    By ldarley in forum Forms
    Replies: 0
    Last Post: 08-14-2008, 09:39 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