Results 1 to 5 of 5
  1. #1
    Reh is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2011
    Posts
    5

    Question Using Multi-column look-up tables

    Hi!
    I am designing a simple database as an intern, having no experience with Access beyond my exploration as part of work experience. Well, I have been tasked to create an additional, more complicated database, and if I don't turn something out (even though it wasn't part of my original job), I won't look very good!

    I have one problem that I think if I can get it fixed, everything will be peachy. I have looked in several help books and searched on Google, but I think maybe I just don't know what to search for...

    The Problem: I am using a multi-column lookup table and have it set to be able to select multiple rows. The drop-down looks like this in my database:

    But when I check multiple boxes, it looks like this in the datasheet view:



    Is there any way to make it display the information from both columns? I need to be able to search on this information and filter by it.
    Or if you have any alternative methods for displaying the information, I'll hear any suggestions!

    Thanks!

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    This is saving data into multi-value field in table. It is saving only the value from the bound column. You need to save a record ID from the source table. And then only the record ID will show. No, don't think can save values from all the columns of the dropdown.

    I refuse to use multi-value fields because they violate relational database principles and are difficult to work with. Multi-value field is a convenient, quick, easy way to input multiple data but makes querying, filtering, grouping on this data harder.

    Normalized data structure would require a dependent table to store records of these selected items. A multi-value field sort of does this, only Access hides the dependent table.
    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.

  3. #3
    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,726
    I agree totally with June7. Multivalue fields are not the way to go.
    I strongly suggest you read the first few topics at this site.
    http://www.rogersaccesslibrary.com/forum/topic238.html
    Normal forms, normalization and entity relationship diagramming

    I can assure you that getting your tables and relationships well designed will save you much time and frustration in the long term.
    Good luck with your project.

  4. #4
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    I have nothing to add, I'm just agreeing!

    Multi value fields are a terrible, terrible, terrible temptation for newer users that make programming much, much harder than it needs to be.

  5. #5
    Reh is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2011
    Posts
    5
    Thanks mucho, guys! Luckily I am at the very beginning of this database, so changing it is no headache at all =)

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

Similar Threads

  1. sales DB selecting column and column range
    By pher77 in forum Queries
    Replies: 3
    Last Post: 06-11-2011, 04:04 PM
  2. Replies: 1
    Last Post: 03-14-2011, 10:04 AM
  3. Replies: 1
    Last Post: 04-15-2010, 02:07 AM
  4. inserting values in column based another column
    By wasim_sono in forum Database Design
    Replies: 1
    Last Post: 06-27-2006, 05:23 AM

Tags for this Thread

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