Results 1 to 4 of 4
  1. #1
    zannix is offline Novice
    Windows 7 64bit Access 2003
    Join Date
    Jan 2012
    Posts
    1

    One Form to Update 2 Related Tables?

    Hi guys,

    I'm sort of new to MS Access, but as a student I have a project that I'm due to complete to Monday. So I would need your help!

    My theme is "CD shop" and there are 2 tables that I'm trying to make a form out of. They are related many-to-many and therefore have a 3rd, relational table.

    1st table is: Artists
    2nd table is: Albums



    Since one artist can have multiple albums and vice versa, I've created a 3rd table: Artists_Albums with the IDs of both tables, and made both those IDs a primary key in the table.

    Now... I want to create a form which will be called "Enter new Album", and it should allow the user to enter a new album into the database, without first entering the artist info, then the album info, and then connect those two through the relational table...

    I want to make a form that allows to do all that in one step. A user should enter the name of the album and the artist for that album, and those 2 should then be connected in a database.

    Please help me solve this problem!

    Kind Regards,
    Zannix

  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
    Sounds unusual but maybe this is what you want:

    A form bound to the Artists_Albums table with two combo boxes, one for each ID fields. Have on this form two subforms, don't link to the main form. Bind one form to the Albums table and one to the Artists tables. You can set these two forms to only allow new records, not display existing. Might need code to requery the two comboboxes after artist or album is added.
    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
    cap.zadi is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    May 2011
    Location
    KSA
    Posts
    481
    Hey,

    I think it would be best for you to watch all the tutorials from Mr. Firchild and its all about the "CD Shop" as well.

    http://www.youtube.com/watch?v=_7ZtN...ure=plpp_video


    Regards


    Zee

  4. #4
    alive is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jan 2012
    Posts
    2

    I got answer to this

    First try to make relationship between the two tables with the ID as unique field and then while creating form choose fields of both the tables.


    A detailed tutorial will be posted soon.

    Sorry file was too large for an attachment

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

Similar Threads

  1. Replies: 2
    Last Post: 07-16-2011, 07:56 PM
  2. Query with related tables question
    By jpkeller55 in forum Access
    Replies: 4
    Last Post: 09-25-2010, 04:29 AM
  3. Not able to make Form from related Tables
    By a1y1a1y1 in forum Forms
    Replies: 5
    Last Post: 01-02-2010, 12:33 PM
  4. 3 Related Dependent Tables
    By jbarrum in forum Access
    Replies: 0
    Last Post: 11-17-2009, 11:27 AM
  5. Split a table into related tables
    By triley01 in forum Database Design
    Replies: 1
    Last Post: 03-12-2009, 02:38 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