Results 1 to 2 of 2
  1. #1
    mpaulbattle is offline Advanced Beginner
    Windows 7 32bit Access 2010 64bit
    Join Date
    Aug 2013
    Location
    Houston
    Posts
    50

    Need help where form will require two values to show.

    On our current form we have our:

    Customers | Joined Date | Trainers (Free text)
    ABC | mm/yyyy | Jane, Doe

    I am looking for a way to have multiple values (if needed) to be listed in the Trainers by normalizing so the users can't abbreviate, misspell or add something crazy in there.

    I created a table for trainers
    tblTrainers:
    TrainerID - AutoNumber


    TrainerName - Short Text

    I was thinking of making it multi selection, but I am reading that is not the preferred method.

    Any suggestions?

  2. #2
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,845
    change your free text trainers field to a long called TrainerFK or similar, that will link to your trainers table

    then in your form, change the textbox to a combobox using the trainers table as it's rowsource (hide the column with the PK)

    if you are saying you have a many to many relationship between customers and trainers, you need a join table instead

    tblCustomers
    customerPK
    customerName
    ...
    ...

    tblTrainers
    TrainerPK
    TrainerName
    ...
    ...

    tblCustomerTrainers
    CustomerTrainerPK
    customerFK
    trainerFK

    and on the customer form you would have a subform based on the customertrainers table - with a combo based on the trainers table to select trainers

    or on the trainers form you would have a subform based on the customertrainers table - with a combo based on the customers table to select customers

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

Similar Threads

  1. Replies: 13
    Last Post: 12-27-2018, 05:56 PM
  2. Replies: 7
    Last Post: 08-14-2018, 11:32 AM
  3. Replies: 3
    Last Post: 05-08-2014, 10:25 AM
  4. Replies: 1
    Last Post: 08-29-2011, 09:31 AM
  5. How do you Show Totaling Values on a Form?
    By Access_Headaches in forum Forms
    Replies: 0
    Last Post: 08-31-2010, 09:38 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