Michael,
I had to do this as whoever set up the Access workgroups security where I work hadn't done such a good job. Joining the workgroups set security measures on Access in general and not just the database I wanted to protect.
I didn't set the Database Password under the tools option because although I had all the data in an Access database, the interface was a separate Visual Basic program and setting the Database password complicated the connection I was using (MS Datalink and Data Environment). I had so many problems trying to pass the user name and password to the Datalink file that I gave up.
I spoke to a few others I work with and one suggested building in my own rather crude security. Hence, the rather messed up code above.
All that said, your point is well made and LASHWARJ would probably be better off looking into the built in security. It just didn't work for me.
Brendan