G
Guest
Programmer's nighmare: after writing an applicaiton to manipulate & import
fairly complex data from a flat data file to a DB2 database, the user turned
around & asked that I not filter by certain criteria. However, the particular
criteria shows up in quite a number of the 100+ queries involved in the app.
Is there a way to search through the queries collection to find all
occurrences of a string in the SQL statements?
I posted once before on how to do a search/replace and got this as a response:
Dim qdf As DAO.QueryDef
For Each qdf In CurrentDb.QueryDefs
qdf.SQL = Replace(qdf.SQL,"User1","User2")
Next qdf
How can I now modify this to simply list each query that contains the string
"User1" so that I can find all the occurrences without necessarily replacing
each one?
fairly complex data from a flat data file to a DB2 database, the user turned
around & asked that I not filter by certain criteria. However, the particular
criteria shows up in quite a number of the 100+ queries involved in the app.
Is there a way to search through the queries collection to find all
occurrences of a string in the SQL statements?
I posted once before on how to do a search/replace and got this as a response:
Dim qdf As DAO.QueryDef
For Each qdf In CurrentDb.QueryDefs
qdf.SQL = Replace(qdf.SQL,"User1","User2")
Next qdf
How can I now modify this to simply list each query that contains the string
"User1" so that I can find all the occurrences without necessarily replacing
each one?