Results 1 to 2 of 2
  1. #1
    polisasimo is offline Novice
    Windows 8 Access 2013
    Join Date
    Jun 2014
    Posts
    9

    Which forms use which queries.

    Hello,

    I am brand new to Access. I am using 2013. I have a DB with a single table. One column is named "group" and contains a numeric value 1-50. Each record in the DB is assigned a group number. So some groups may contain 10 records some may contain 75. I have many reports each of which uses a query that selects records based on group criteria. For example report A will fetch all records with a group value of (1,5 and 15), while report B will return all records with a group value of (5, 7 and 15) etc etc.

    I would like to add a column in the table "reports" that will allow storage of which report names each record will be returned on.

    So using the example above let's say there are 3 records with a group value of 5. I would like to populate the "reports" column for these three records with a value of "A, B". Considering both report A and B return records with the group value 5.



    I know I can use the object dependency pane to view each query and hand enter the criteria values into this new column. Is there a way to just query the DB to return all queries that use a particular where clause?

    Thanks in advance for any help.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    How would you use the 'Reports' field?

    Conventional approach for managing dynamic report is to have a single report and then apply filter criteria to the report when it is opened. This requires code.

    Extracting the clause from a query object SQL statement would require advanced VBA code.
    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.

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

Similar Threads

  1. Dates, Forms, and Queries
    By Ace2014 in forum Access
    Replies: 21
    Last Post: 06-18-2014, 06:01 AM
  2. Forms and queries
    By MalvinkaAccess in forum Access
    Replies: 4
    Last Post: 03-15-2013, 12:25 PM
  3. Forms and SQL Queries
    By springboardjg in forum Queries
    Replies: 1
    Last Post: 06-07-2011, 06:18 AM
  4. Help with Queries and forms
    By dcwang3 in forum Access
    Replies: 0
    Last Post: 05-28-2009, 08:00 AM
  5. Replies: 4
    Last Post: 04-01-2009, 08:49 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