Results 1 to 4 of 4
  1. #1
    HansBades is offline Advanced Beginner
    Windows 10 Office 365
    Join Date
    Dec 2021
    Posts
    85

    Multiple values for a field in a form


    I have a continuous form. One field of the record can have multiple values. I want to avoid having a separate rows to enter in the multiple values for that field. I would prefer the user could simply check or select the multiple values from that field in the row to represent that many to many relationship. I want the table to update accordingly which of course would have multiple records with the same fields except for that one field where it would list one record for each value chosen for that field. I don't want to use the multivalue field. I hear that is controversial and won't migrate to sql server. Not sure if that is true but I don't want to use it for other reasons as well. What can I do to avoid having to create multiple rows for essentially the same values in the record except for one field? Thank you.

  2. #2
    ssanfu is offline Master of Nothing
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Quote Originally Posted by HansBades View Post
    I have a continuous form. One field of the record can have multiple values. I don't want to use the multivalue field.
    Whew.... You shouldn't use MVF's. That breaks the Normalization Rules.


    Quote Originally Posted by HansBades View Post
    I hear that is controversial and won't migrate to sql server. Not sure if that is true but I don't want to use it for other reasons as well.
    This is true. MFV's are a construct of M$ and do not transfer/convert to other types of databases easily.


    Quote Originally Posted by HansBades View Post
    What can I do to avoid having to create multiple rows for essentially the same values in the record except for one field?
    You haven't told us enough about your project/design.


    One way would be to use another (related) table to store the values. For example, if you had a contacts table and you wanted to store ALL of the Contacts phone numbers. I would have a design like this:
    (just an example)
    Click image for larger version. 

Name:	Presentation1.png 
Views:	32 
Size:	8.0 KB 
ID:	48326
    The field "PhoneNumberType" would have options:
    Home (Land Line),
    Cell,
    Fax,
    Office

    These options would/should be in a separate table (look up TABLE) to make it easy to add/delete options.

    This is how the tables would be designed/related. Then comes the issue of how to enter data. Normal would be a Main form/Sub form design.
    But it sounds like you have the form in continuous form view.

    Maybe you would expound more on what your vision of the dB is? And/Or post a copy of your dB?

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,527
    use a sub-table (child) that can hold many records for the master record.

  4. #4
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,568
    DO NOT try to put multiple values in a field.

    EACH value should be a record in a separate table
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

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

Similar Threads

  1. Replies: 27
    Last Post: 06-09-2020, 02:03 PM
  2. Replies: 11
    Last Post: 05-16-2019, 12:53 PM
  3. Replies: 2
    Last Post: 05-17-2017, 06:17 AM
  4. Replies: 9
    Last Post: 01-03-2013, 04:04 PM
  5. Replacing many values at once in a multiple values checkbox field.
    By ConfusedDatabaseDesigner in forum Forms
    Replies: 2
    Last Post: 07-20-2012, 08:58 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