Results 1 to 6 of 6
  1. #1
    Abacus1234 is offline Competent Performer
    Windows 8 Access 2013 32bit
    Join Date
    Nov 2011
    Posts
    212

    Query Joins

    I have a question about normalization which I am going to ask in layman's terms.



    Table 1 has data about an "event", and is connected to one of many cities. So Table 1 has a foreign key for city which links to the ID of Table 2. In a query I connect this data by saying Include all records from Table 1 and only those records from Table 2 where the joined fields are equal. (I use criteria I Table1 ID to return I row of data for one record from Table 1.)

    I also have Table 3, Table 4a and 4b (I have a query which includes 4a and 4b) and Table 5 which are also event Data as Table 1, but I cannot get it all in Table 1, so I put it in Table 3, Table 4 and Table 5.

    How would I link Tables 3,4 and 5 to Table 1in a query so that I could add new records via a form based on the query.

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    I suggest you give us some indication of what the table(s) is/are about.
    I see Event and City, but table 3, 4a etc may be useful to theorists, but don't add context to your post.

    A clear description of your "business" in simple English will go a long way to getting focused responses --quickly.

  3. #3
    Abacus1234 is offline Competent Performer
    Windows 8 Access 2013 32bit
    Join Date
    Nov 2011
    Posts
    212
    Table 3, 4a and 4b and 5 also contain event data, too much to add to Table 1 (or handle in a query for data entry purposes.

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    OK, step back and in simple, clear terms (plain English) how would you describe your set up to someone in a line at McDonalds that doesn't know you, doesn't now database and has never heard of Access. But for some unknown reason the person asks what is it you're working on?

    Readers do not know your setup; your skill set/experience; nor your business. To get a meaningful response, add some context to your post.

    Good luck with your project.

  5. #5
    Abacus1234 is offline Competent Performer
    Windows 8 Access 2013 32bit
    Join Date
    Nov 2011
    Posts
    212
    I have a traditional application developed many years ago, with data entry screens, a multitude of underlying calculations which mean I can calculate many bits of information for the user so they don't have to, and then many hundreds of documents as output based on queries and mail merge.

    I'm trying to revolutionize the interface, so that the first thing the user sees is an output screen that intuitively centers them on what they want from the system, not all the possible variations. I'm trying to use an existing query normally used to output a document, and although I can make this work quite well for an existing record, I cannot set it up to accept a new record.

    The way I get it to accept new records in the normal data entry, is to rig the ID numbers of Table 3, 4a 4b and 5 to accept the same ID number as Table 1. I also have a foreign key in Table 1 that points to Table 3, 4 and 5. I pull 4a and 4b together with a query when I need to use them another query. But I am no longer sure whether the foreign keys make it all work, or the rigged ID numbers.

    So I don't have a simple question, nor do I really expect a simple answer. I wish I knew all the theory from the ground up, but what I mainly do is trial and error until it does what I need.

  6. #6
    Abacus1234 is offline Competent Performer
    Windows 8 Access 2013 32bit
    Join Date
    Nov 2011
    Posts
    212
    I finally linked tables 3, 4 and 5 to table 1 so I can use the form to enter new records into the tables.

    I connecting 3 to 1 via the record id's of the 2 tables, so 3 on the left and 1 on the right and used option 3

    and did the same with 4 and 5.

    Thanks for the response, it is very helpful to have a forum to pose questions to.

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

Similar Threads

  1. Replies: 16
    Last Post: 06-06-2016, 08:45 AM
  2. Replies: 2
    Last Post: 08-07-2014, 01:08 PM
  3. query for using joins and not in list
    By sireesha in forum Queries
    Replies: 3
    Last Post: 07-16-2013, 12:23 PM
  4. Query for Joins
    By sireesha in forum Queries
    Replies: 4
    Last Post: 07-15-2013, 08:27 AM
  5. Replies: 5
    Last Post: 11-05-2012, 08:33 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