Results 1 to 6 of 6
  1. #1
    justgeig is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Dec 2009
    Posts
    45

    Data entry form with three junction tables?

    I've got the following table structure (well, this is a small part of it):


    Click image for larger version. 

Name:	Capture2.JPG 
Views:	11 
Size:	60.8 KB 
ID:	13386

    And I setup a nice data entry form that looks like this:
    Click image for larger version. 

Name:	Capture.JPG 
Views:	14 
Size:	79.7 KB 
ID:	13387

    Is what I'm trying to do possible with there being junction tables in between? Whenever I've used subforms in junction tables before, I've always based it on the junction table itself with a combo box and then had a button to create a new entry in a separate form based on the child. After the new entry was created, then the user was able to select it in the combo box. I'd REALLY like to simplify that process to speed up data entry but after making this form the way I did, I've discovered that I haven't been able to figure out how to make it happen :-( Suggestions?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Can have subforms up to, I think, 7 levels, but only the last can be in Continuous or Datasheet.

    Here is another way to link subforms: http://www.fmsinc.com/MicrosoftAcces...edSubforms.asp
    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
    xeifohShoh2 is offline Novice
    Windows 7 64bit Access 2003
    Join Date
    Aug 2013
    Location
    Florida, USA
    Posts
    2
    Hello,

    As per your requirement, and the images that you have given. It seems to have a tree like structure. For that you need to create several tables with perfect interlinking between the elements at proper heirarchy.

    If you need, and if you can provide me details, then I can make the table architecture for you.

    Let me know If I can be of some help.

    Regards

  4. #4
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    I've been looking at your relationship image and it looks to me you shouldn't have any many to many relationships at all.

    One company can have many emails
    One email goes to one company
    therefore relationship is one company to many emails

    One company can have many phone numbers
    One phone number goes to one company
    therefore relationship is one company to many phone numbers

    One company can have many addresses
    One address goes to one company
    therefore relationship is one company to many addresses

    (I like to put the one table on the left... easier for me to see the flow..)
    Maybe this would work for you....
    Attachment 13410

    The main form detail section would be the main company data
    The footer would have the 3 sub forms...very simple

  5. #5
    justgeig is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Dec 2009
    Posts
    45
    Apologies, I didn't include the entire table structure to make it more clear but I probably made it less clear. Here is the entire structure for customer data.

    Click image for larger version. 

Name:	updated tables.jpg 
Views:	9 
Size:	59.1 KB 
ID:	13425

  6. #6
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    I still contend that there is only one many to many table. All the rest are one to many...

    Attachment 13431


    This still applies:

    One company can have many emails
    One email goes to one company
    therefore relationship is one company to many emails

    One company can have many phone numbers
    One phone number goes to one company
    therefore relationship is one company to many phone numbers

    One company can have many addresses
    One address goes to one company
    therefore relationship is one company to many addresses

    --------------------------------

    One contact can have many emails
    One email goes to one contact
    therefore relationship is one contact to many emails

    One contact can have many phone numbers
    One phone number goes to one contact
    therefore relationship is one contact to many phone numbers

    One contact can have many addresses
    One address goes to one contact
    therefore relationship is one contact to many addresses

    -------------------------------------------------------
    One contact can work for many companies
    One company can have many contacts
    therefore relationship is many to many



    I realize I don't know your process or requirements, but I think this gets to the same place... and less complicated.

    My $0.02....

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

Similar Threads

  1. Replies: 5
    Last Post: 08-12-2013, 12:53 AM
  2. Replies: 4
    Last Post: 03-12-2013, 01:59 PM
  3. Replies: 1
    Last Post: 05-17-2012, 05:02 PM
  4. Data Entry into a Form with 3 Tables
    By norcalpsych in forum Forms
    Replies: 14
    Last Post: 04-03-2012, 07:12 PM
  5. Replies: 1
    Last Post: 11-19-2011, 10:36 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