Results 1 to 6 of 6
  1. #1
    MichaelA is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Sep 2019
    Location
    Wisconsin
    Posts
    139

    Store More than one value in a field without using lookup.


    I think I'm going to wind up feeling like an idiot for not being able to figure this out but I can't. I'm making a simple movie database. It will have movie titles, genera, and movie format (i.e. DVD, Blueray, etc.) I have three tables, tblMovies, tblGenera, and tbleFormat. My problem and question is, some movies fit into more than one Genera. How do I store numerous genera in a table cell without using the dreaded "lookup?"

    Thank you!
    Michael

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,914
    Only other way is as a CSV string.

    Advise not to store multiple data elements in a single field. Use a dependent related table where each movie/genre pair is a record.
    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
    MichaelA is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Sep 2019
    Location
    Wisconsin
    Posts
    139
    Quote Originally Posted by June7 View Post
    Only other way is as a CSV string.

    Advise not to store multiple data elements in a single field. Use a dependent related table where each movie/genre pair is a record.
    Would a user have to enter each movie/genre pair separately?

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,914
    Of course, it's called "data entry".

    However, could use a linked subform so movieID automatically populates in dependent record and user only has to select genre.
    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
    MichaelA is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Sep 2019
    Location
    Wisconsin
    Posts
    139
    Quote Originally Posted by June7 View Post
    Of course, it's called "data entry".

    However, could use a linked subform so movieID automatically populates in dependent record and user only has to select genre.
    This sounds like a decent option. Back tot he drawing board.

    Thank you!

  6. #6
    Mickjav is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Mar 2019
    Location
    Margate, Kent
    Posts
    123
    I would use
    tblGenera Holds each Genera
    tblMoviesGenera Would be a many to many table between movies And Genera

    Create 2 primary keys GeneraID and MovieID in tblMoviesGenera

    This way you could add more that one Genera per movie.

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

Similar Threads

  1. Lookup and Store ISBN Information
    By MichaelA in forum Forms
    Replies: 3
    Last Post: 05-01-2020, 03:16 PM
  2. Replies: 9
    Last Post: 10-10-2019, 05:13 PM
  3. Replies: 4
    Last Post: 03-17-2016, 07:16 AM
  4. Lookup values not appearing in Lookup field?
    By dominover in forum Access
    Replies: 4
    Last Post: 03-05-2016, 05:01 PM
  5. Replies: 9
    Last Post: 04-01-2014, 05:06 PM

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