Results 1 to 6 of 6
  1. #1
    lyncha is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2013
    Posts
    3

    Multi Value Fields

    Hi guys

    I am looking for some advice on how best to capture multi value data for a particular field.

    Basically I am working on a project in Access 2010 whereby I need to provide users with an option to select multiple values for a selected field but I am struggling on how best to achieve this.

    The DB is set up as follows…

    Table1 – Static Data
    SK Number
    Company
    Audience

    Table2 – Job Details
    SK Number
    Status
    Owner

    Table3 – Company (Used as a Lookup Table)
    Record1
    Record2
    Record3 etc

    Form1 – bound to Table1 to add and amend static records

    Form2 – bound to Table2 to add and amend job details. This form also has a sub-form to show (read only) the records from Table 1 where the SK Number matches.

    Form3 – bound to Table3 to allow users to add and amend records used within a lookup.

    Within Table1, the field ‘Company' can have multiple records and I am trying to allow the users the ability to select these from a drop down list.

    I was looking at the ‘Lookup’ functionality available in 2010 but this does not meet my requirements as I need to import data into the table and this would not be possible using this option.

    I also toyed with the idea of creating a separate Field in Table 1 for each country and then applying a checkbox on the form but there are too many records.

    One option I was considering was using a list box but the layout of this for selecting records would not work with the suers due to their being such a wide choice.



    Does anyone have any suggestions on how best to achieve this.

    Many thanks

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    If you search the forum and look for comments related to
    a) multiple valued fields and
    b)Lookup tables

    You will find recommendations for a) that you should avoid multiple valued fields that m$oft has made available. They violate normalization principles and will get you into situations that can be avoided by not using multivalued fields.

    If your intent is to use lookups at the field level in a table, the general advice is to avoid using lookups at the table field level. see http://access.mvps.org/access/lookupfields.htm for details.

    You have told us how you have set up some tables, but you have not told us in plain English what you are trying to do.
    If you would describe to the readers WHAT you are trying to do, I'm sure you will get some answers with recommendations and advice.

  3. #3
    lyncha is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2013
    Posts
    3
    Thanks for the reply.

    Basically I want to allow the user the ability to select multiple items from a list and update a table based on the selections they make.

    The more I read the more I feel that the only option is to use a list box.

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    ability to select multiple items from a list ---What list? Where do the "selectable things" come from?

  5. #5
    lyncha is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2013
    Posts
    3
    Thanks Orange,

    The records are held in a seperate table called 'Company'. The users should be able to select one or many records from the 'Company' table via a drop down list on a form and then the records they select update the 'Company' field in a seperate table called 'Static Data'.

    The DB is set up as follows…

    Table1 – Static Data
    SK Number
    Company
    Audience

    Table2 – Job Details
    SK Number
    Status
    Owner

    Table3 – Company (Used as a Lookup Table)
    Record1
    Record2
    Record3 etc

    Form1 – bound to Table1 to add and amend static records

    Form2 – bound to Table2 to add and amend job details. This form also has a sub-form to show (read only) the records from Table 1 where the SK Number matches.

    Form3 – bound to Table3 to allow users to add and amend records used within a lookup.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Add my voice to the chorus, avoid multi-value fields. Unless this is a web database there is virtually no justification for using.

    Should have a child table to save detail records. Create a form/subform arrangement for data entry.
    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. Multi-value fields and sub-datasheet.
    By specialk in forum Database Design
    Replies: 1
    Last Post: 12-05-2012, 03:18 PM
  2. How to Search Fields from Multi-Tables Form?
    By Yeisha2008 in forum Queries
    Replies: 9
    Last Post: 07-19-2012, 11:41 AM
  3. Several fields vs multi-select list vs other?
    By DarthZ in forum Database Design
    Replies: 1
    Last Post: 02-15-2012, 10:28 AM
  4. Import xls with multi-value fields
    By Fred B. in forum Import/Export Data
    Replies: 2
    Last Post: 06-15-2011, 10:46 AM
  5. querying Multi-valued fields
    By switters in forum Queries
    Replies: 1
    Last Post: 04-21-2011, 10:59 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