We help IT Professionals succeed at work.
Get Started

How to loop thru all queries and find which one's were affected by a table change.

bfuchs
bfuchs asked
on
159 Views
Last Modified: 2017-04-24
Hi Experts,

I am trying to get rid of many fields of a table that are not in use anymore, and we have a database of hundreds of queries and would like to know which of them would get affected by this change.

How can I loop all queries and get a list of all of them that are using one of those removed fields, which in that case when opening normally Access will display a message "enter parameter value.."

I guess something like the below for looping..
    For Each qdf In db.QueryDefs
        If Mid(qdf.Name, 1, 1) <> "~" Then

Open in new window

Comment
Watch Question
CERTIFIED EXPERT
Top Expert 2016
Commented:
This problem has been solved!
Unlock 2 Answers and 47 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE