Results 1 to 7 of 7
  1. #1
    nicolazilio is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jun 2014
    Posts
    3

    Multivalued field in form

    Hello,


    I am trying to create a field in an Access form that would allow multiple values to be selected in one field only. Essentially, I would like to set it up as follows

    arg1-14 arg3-D4 his7-366 lys1-131 lys3-37 lys4-95
    arg1-230 lys4-239

    where the user can choose only one value in each column. I know this can be done with multivalue lookup columns but I don't see a way to add that to a form. As an alternative I tried to enter these values in the "Validation Rule" property of a textbox but then it only allows one value to be added to the field.

    Any advice is appreciated.

    Thanks

    Nicola

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    don't do it, multi value fields are the worst possible thing you could do to your database. Try to work towards a normalized structure, you will save yourself a LOT of aggravation over time.

  3. #3
    nicolazilio is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jun 2014
    Posts
    3
    I know a lot of people don't like them, and I understand that they may be an issue in complex databases.

    That said, my database is a simple list of yeast strains that includes their genotypes and phenotypes. As simple as that. I could create a separate field for each auxotrophic marker but I don't see the point, mostly because they very rare and probably will not have to use these values very often.

  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,626
    The first column has arg1-14 and arg1-230. You don't want to allow both of those to be selected? Some values are mutually exclusive?

    But user could select every value on the first row?

    Combo and list boxes cannot be setup with options presented horizontally.
    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
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    I understand your database is simple, but as june has pointed out there are large holes in using multi value fields where you want to display it a certain way. The best way to handle this is with the correct, normalized structure. If you have a supporting table indicating that these strains have particular genotypes/phenotypes that you want to display in a particular column on a report or form that is far easier to deal with than trying to manipulate a mutli value field.

  6. #6
    nicolazilio is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jun 2014
    Posts
    3
    Thanks. I will try that, but I am an Access beginner, so any good tutorial on how to go about doing this would go a long way...

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    Start with http://www.rogersaccesslibrary.com/

    or get a decent introductory tutorial book on Access.
    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.

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

Similar Threads

  1. Trouble Searching multivalued field
    By Gr0m in forum Access
    Replies: 4
    Last Post: 03-20-2013, 11:35 AM
  2. Replies: 5
    Last Post: 02-20-2013, 03:21 PM
  3. Replies: 2
    Last Post: 12-10-2012, 02:15 PM
  4. Multivalued Look-Up Field Problem
    By Mike Wood in forum Access
    Replies: 4
    Last Post: 02-27-2012, 01:26 PM
  5. Replies: 2
    Last Post: 06-29-2011, 11:42 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