Results 1 to 4 of 4
  1. #1
    mrmmickle1's Avatar
    mrmmickle1 is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Sep 2014
    Location
    North Carolina
    Posts
    78

    Finding Queries that contain Form Criteria


    I have recently inherited a database that has hundreds of queries. Alot of these are fairly complex. I would like to search all of the queries and find specific queries that contain
    Code:
    [Forms]![MyForm]![txtParent]
    Is there a way to produce a short list of the queries that contain this criteria? I would like to avoid opening and looking through them manually. A lot of these queries contain many calculated fields using a lot of complicated nested IIF() statements.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,825
    With lots of VBA code.

    This is why I acquired Rick Fisher's Find & Replace. Cost about $50. Saved my sanity more than once. Another add-in with positive reviews is VTools and is free. I have also heard of MZTools.
    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
    mrmmickle1's Avatar
    mrmmickle1 is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Sep 2014
    Location
    North Carolina
    Posts
    78
    June7,

    Thanks for the info. I'll have to look into these options. For now I have modified the newly written code back to the full call out method....

    I was implementing some new form code to simplify the long code strings....

    Code:
    With Me
        .Parent = Dlookup()
    End With
    Since .Parent is reserved I changed the txtbox to .txtParent but then I couldn't find the query that referenced [Forms]![MyForm]![Parent].....

    ended up changing that one back for now....

    As always thanks for taking the time to respond. It means alot to have such a great resource at the tip of my fingers.

  4. #4
    NTC is offline VIP
    Windows 7 64bit Access 2013
    Join Date
    Nov 2009
    Posts
    2,392
    there is no way to do what you seek that I know of.....

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

Similar Threads

  1. Editing queries criteria with VBA
    By snipe in forum Queries
    Replies: 2
    Last Post: 11-12-2013, 12:09 PM
  2. Replies: 14
    Last Post: 05-09-2013, 06:53 AM
  3. Replies: 1
    Last Post: 01-30-2013, 03:27 PM
  4. Replies: 3
    Last Post: 08-22-2012, 03:51 PM
  5. Replies: 1
    Last Post: 11-22-2010, 11:19 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