Thank you for the example. I have imported the modules and tried it. I get an error with the function GetAppDir(), strDB = CurrentDB.name. The error reads Run time error '91', Object variable or With block variable not set. Any ideas how to rectify? The process is great and I would really...