Alan has the right 'approach'. This has been discussed in this forum previoiusly, I believe within the last three months. As discussed, you need to basically use the documents collection to obtain the lists of everthing. Itterate through these lists, basically logging everthing except the keywords, comments, and procedure local variables. Everthing else is a varialble, so then just build a cross reference. You do need to exercise some 'extreme' care with queries, as they are where many variables get created - this isespecially true of the crosstab queries, as the column headings are not determined/available directly from the SQL, but may (sometimes) be obtained from the "Headings" property. In many instances, this is not a real problem, as the dataconsumer of the crosstab query will list the pivot fields WHICH ARE USED, you just loose the link through the crosstab query itself.
You should do a search through the Ms. Access forums on the subject. Use SEVERAL keywords, such as cross reference, coorelation ...
MichaelRed
mred@duvallgroup.com
There is never time to do it right but there is always time to do it over