Jonh,

Great. Thanks!. I got an error when I tried to run the code on the DOA.Database line so I just changed both DOA.Database and DOA.TableDef to object. It seems to work, so I suppose that will be ok.