
Originally Posted by
kagoodwin13
You shouldn't need to password protect a "Close Form" macro. You can have the button run a macro in Access, which has a pre-programmed Close Form command, or use a VBA command (DoCmd.Close) with proper error trapping to prevent exposing the macro.
Tell us more about the process you want your users to complete. I'm not sure what you mean by "add/delete books." You can develop a form to control the editing of all the data in the database.
I've solved the problem now.
The database is just designed to show people in the workplace where various books are stored, and when someone's taken a book, who that someone is.
Basically, I don't want to make the add/delete books process greatly difficult - it's not a greatly sensitive database, and people won't often be using the add/delete books option.
On the main menu are several options; withdraw a book, return a book, view all books, view available books, view books on loan, view map of locations and add/delete books.
Withdraw/Return/Map all cause forms to popup.
Viewing books causes respective queries or tables to open in Read Only mode.
Add/Delete books causes the original books table to open in an editable mode.
All I want is to be able to password protect the add/delete books button; I've managed to do it now though, so thanks for the help!