Hi Brian,
you may be on the right track with the documentor...
Document the SQL for all your queries
then, with the report open
right-click on it
choose "Export..." from the shortcut menu
change file type to Rich Text Format
and put the file in a logical place
then, open the file in Word
find --> INTO (space at end)
replace with --> INTO (space at end), format --> font --> bold
this will boldface every word INTO, making it easier to spot
the tables that are made
'~~~~~~~~~`
you could, of course, use Access to do a search and write a
program to actually return the tablenames and the queries
that make them.
here is a little procedure to get you on your way if you
feel like coding...
'~~~~~~~~~~~~~
Sub DocumentQuerySQL()
'NEEDS REFERENCE
'Microsoft DAO Library
Dim qdf As DAO.QueryDef
For Each qdf In CurrentDb.QueryDefs
MsgBox qdf.SQL, , qdf.Name
Next qdf
Set qdf = Nothing
MsgBox "DocumentQuerySQL Done", , "Done"
End Sub
'~~~~~~~~~~~~~
Warm Regards,
Crystal
Microsoft Access MVP 2006
*
Have an awesome day
remote programming and training
strive4peace2006 at yahoo.com
*