Results 1 to 6 of 6
  1. #1
    Nanuaraq is offline Advanced Beginner
    Windows 7 32bit Access 2013 32bit
    Join Date
    Mar 2017
    Posts
    77

    Relations between queries

    Hi there



    Recently I've been having to do some pretty specifik queries and I've found that it helps to make the query in more than one step. Sometimes, That's the only way I can do it, for example if I wish to see totals and then query further on those totals. Also, I might need a basic query expression and then do multiple queries based on that, so that I might for example change a parameter in the basic query withouth doing the change in all my multiple queries.

    I am in search of a tool that lets me see which query is the basis for which other query.

    Iv'e been introduced to a tool callede KNIME that seems to do what I would like access to do. It graphically presents to me what steps I've done in querying queries. But that's a new tool, and I like to keep things simple so it would be nice to do in Access that I already knows.

    What would you recommend?

  2. #2
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    I think most people would use naming conventions, such as
    nameofquery_a
    nameofquery_b
    ....
    nameofquery (this being the final one, such as GetAllTotals_qry, all the queries with the same name lead up to this one)

  3. #3
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,511
    As aytee111 said, I name mine same with numbers or description:

    qryCustMain
    qryCustDetail

    qryPatTotal1
    qryPatTotal2 (qryPatTotal1 as source)
    qryPatTotal3 (qryPatTotal2 as source)

  4. #4
    Nanuaraq is offline Advanced Beginner
    Windows 7 32bit Access 2013 32bit
    Join Date
    Mar 2017
    Posts
    77
    Oh well, I already do that. Should have mentioned it of course.

    What I'm looking for is a graphical tool that shows me visually, much like relations between tables.

    Thank you anyway

  5. #5
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,511
    You might check out Object Dependencies in the Tools tab. Looks like if you highlight a table on left and have "Objects that Depend on Me" selected, it will give you a tree view of queries that use it in that section. Did not seem to work as well when I highlighted the first query in a next of sub queries. But maybe play with it, might give you some info. Other thing would be the Database Documenter, can give you some reports on objects if you limit the options but not sure it will give you the graphical view you want.

    Look like you can create relationships for queries, I have never done that so not sure how that affect your actual queries but does give you the graphical view. Maybe link the tables and queries into a separate database to only use to view query relationships or something. Of course there may be other 3rd party tools like you found that can do something. Have you looked at Visio maybe?

  6. #6
    Nanuaraq is offline Advanced Beginner
    Windows 7 32bit Access 2013 32bit
    Join Date
    Mar 2017
    Posts
    77
    Quote Originally Posted by Bulzie View Post
    You might check out Object Dependencies in the Tools tab. Looks like if you highlight a table on left and have "Objects that Depend on Me" selected, it will give you a tree view of queries that use it in that section. Did not seem to work as well when I highlighted the first query in a next of sub queries. But maybe play with it, might give you some info. Other thing would be the Database Documenter, can give you some reports on objects if you limit the options but not sure it will give you the graphical view you want.

    Look like you can create relationships for queries, I have never done that so not sure how that affect your actual queries but does give you the graphical view. Maybe link the tables and queries into a separate database to only use to view query relationships or something. Of course there may be other 3rd party tools like you found that can do something. Have you looked at Visio maybe?

    Thank you for the hint on Object Dependencies. Even without the visual representation, this is a nice tool for keeping check on query dependencies.

    To do relations between queries or using Visio is really just a neat way of drawing it up, but does not - if I guess correctly - actually make Access keep check of it for me.

    I'll keep looking, but the Dependencies at least makes things easier

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

Similar Threads

  1. Tables and relations and PK;s and FK''s and FU's
    By Karaline in forum Database Design
    Replies: 4
    Last Post: 02-28-2017, 08:35 AM
  2. Replies: 1
    Last Post: 12-13-2012, 06:43 AM
  3. Relations
    By Frasse in forum Database Design
    Replies: 3
    Last Post: 08-20-2012, 06:11 AM
  4. Expressions and Relations Between Queries
    By alexknopp in forum Database Design
    Replies: 1
    Last Post: 05-01-2012, 09:54 AM
  5. one to one relations
    By crackpot in forum Database Design
    Replies: 2
    Last Post: 08-18-2010, 09:39 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