Results 1 to 7 of 7
  1. #1
    AllegraAccess is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Mar 2014
    Posts
    6

    Form with relational data


    I am very new to Access. I have very familiar with MySQL and PHP. I am trying to build a db that has a MemberT table, a WineT table and a MemberWineT table. Each member is to be assigned wine(s) from the WineT when the Member is entered via a form. The WineT has a wine "class" which is "Red" or "White" and the "type" like "Rich & Creamy". To connect the member to their wine the MemberWineT stores the MemberID with the WineID, at least that is the plan. I can't quite figure it out how to create a form that allows me to enter the member info and their wine choices. I have relationships setup where the MemberT's MemberID is linked to the MemberWineT MemberID and the WinesT is linked to the MemberWineT WineID. I have queries to list only the wines in red class and another to list only white wine class.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    I would think a form bound to the member table and a subform bound to the junction table. The master/child links would keep the subform in sync with the main form.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    AllegraAccess is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Mar 2014
    Posts
    6

    Storing the data

    Quote Originally Posted by pbaldy View Post
    I would think a form bound to the member table and a subform bound to the junction table. The master/child links would keep the subform in sync with the main form.
    On my members form I have a combo box that list the wines. When someone is entering a new member they need to be able to select the wines (more than one) types the member wants. When I create the combo box it ask me where to get the data from and I select the wine table. Then I set it up as far as sorting etc., but at the end it asked me where I want to store this data. Want this data to go to the MemberWineT table (his table has the MemberJID and the WineJID), but it only shows the MemberJID as an option, but I want to save it to the WineJID. Beyond that I can't figure out how to get the Autonumber Member ID to go the the MemberJID when the record is being created.

  4. #4
    AllegraAccess is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Mar 2014
    Posts
    6
    I figured it out. I needed create a form from my MemberWineT.

  5. #5
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Glad you figured it out, and welcome to the site by the way!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  6. #6
    AllegraAccess is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Mar 2014
    Posts
    6
    I am getting there, but I have another question. I would search, but I am not sure even how to ask it. On this form I want to list in a combo box all the wines the member has been assigned already. I have created a query from my relationships of my tables that show the member and their wine. Where I am having a problems is the criteria has to be where the MemberJID = MemberID (I have 5 in my image for an example) that is selected in the form. So I know I have to create a code that onChange of the Member field will tell the Member's Wine Comb box to load the query where MemberJID equals the MemberID of the Member field.
    Click image for larger version. 

Name:	member-wine-form.jpg 
Views:	8 
Size:	23.4 KB 
ID:	15852Click image for larger version. 

Name:	relationships.jpg 
Views:	8 
Size:	47.5 KB 
ID:	15850Click image for larger version. 

Name:	query.jpg 
Views:	8 
Size:	24.8 KB 
ID:	15851

  7. #7
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Sorry, I lost track of this thread. Did you get it sorted out?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Display relational data in query
    By james500 in forum Queries
    Replies: 1
    Last Post: 07-09-2013, 01:37 PM
  2. Few relational database questions
    By rik1254 in forum Access
    Replies: 10
    Last Post: 12-13-2012, 01:13 PM
  3. Double Relational
    By jammmie999 in forum Access
    Replies: 1
    Last Post: 05-19-2011, 01:37 PM
  4. Relational tables - again
    By BarbT in forum Access
    Replies: 6
    Last Post: 10-31-2010, 10:28 AM
  5. Relational tables help
    By BarbT in forum Access
    Replies: 5
    Last Post: 10-21-2010, 09:03 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