Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Developer Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Redundant Queries
Roger Morton 
     
4 years ago
I have been progressively replacing my many quesries with SQL based data sources within forms and reports but I am scared to delete the original query in case another form/report is using the same query.   Is there any way of knowing which queries are childs of another form/report/query?   I thought the Database Documenter might do this but if it does I cant figure it out.
Kevin Robertson  @Reply  
          
4 years ago
In the Relationships group click on Object Dependencies.
Click on your Query then click the Refresh link on the Object Dependencies Pane, and you will see a list of all objects which depend on the selected Query.
Kevin Yip  @Reply  
     
4 years ago
You can do a global search on your VBA code to see if a query is used in any VBA code.  Open the VBA editor (Database Tools -> Visual Basic) and go to Edit, Find, and search "Current Project."
Richard Rost  @Reply  
          
4 years ago
Both excellent ideas from The Kevins (as always). What I will usually do is rename something I'm considering deleting to like "CustomerQ - renamed for deletion on 2022-11-22" or something like that, so if a month goes by and it's still there and flames haven't burst forth from my database by then, it's probably safe to delete. But always make sure you have a good backup copy squirreled away somewhere too.
Roger Morton OP  @Reply  
     
4 years ago
Thanks to both Kevin's and Richard   I knew I would get a great answer but didnt think it would be so quick.  Fantastic advice and support.  Many thanks.
Allan McConnell  @Reply  
     
4 years ago
I do it slightly different in that I make a copy of the database and give it good name so that you do not mix them up. With that copy I either rename my queries or just delete them and test it all out.
I have used this many times to clean up my tables and queries. It does not take too much time to find if you have knocked out a query, table or something that required.
I think I would go Kevin and Richards way. (Smiley face)

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Developer Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/6/2026 4:31:59 AM. PLT: 1s