eloise,
Yes, please put the above code in a module in another .mdb and call the .mdb that you want to secure:
Set dbs = DBEngine.Workspaces(0).OpenDatabase("P:\AccessDB\AcessDB.mdb")
And then just run the code from the other DB.
Thanks.
banera@cpchem
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.