Out at my site I've got an addin tool that includes code to analyze
queries for little things like you describe. Download the DataFast
utility and add it to your addins
http://amazecreations.com/datafast/
Alternatively, you can do some simple DAO code, like this ...
Function FindTable(ByVal strTable As String) As String
Dim dbs As Dao.Database
Dim qdf As Dao.QueryDef
Dim strOut as string
Set dbs = currentdb()
For Each qdf in dbs.Querydefs
If InStr(1,qdf.SQL, strTable) > 0 Then strOut = strOut & qdf.Name & ";"
Next
Set dbs = nothing
FindTable = strOut
End Function
--
Danny J. Lesandrini
(e-mail address removed)
http://amazecreations.com/datafast