+ Reply to Thread
Results 1 to 3 of 3

Password to be able to close a form

  1. #1
    Registered User
    Join Date
    03-25-2009
    Location
    Sweden
    MS-Off Ver
    Excel 2003
    Posts
    49

    Password to be able to close a form

    Hey,

    I have a small database where i want some of my employees to add information. Some of these are just not that smooth with computers in general so i want to protect my database in some kind.

    So my solution was that i do a modal form so they cant click on things around it but its still possible to "close" it down. I want the close button there for my use. what would be nice was if i could protect the close button in some way so that they cant close the form down whenever they please or missclick.

    Is there some way to passwordprotect the "close" button.

    Or would there be some better way to make the form so its no possible to get inside the database itself?
    Last edited by Zheno; 02-22-2011 at 05:00 PM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Password to be able to close a form

    You can use code to prevent the user closing the form with the red X, then add a button that requires a password before closing.

    Please Login or Register  to view this content.
    This will probably cause problems closing the workbook. The simplest solution is to make the data sheet very hidden
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    03-25-2009
    Location
    Sweden
    MS-Off Ver
    Excel 2003
    Posts
    49

    Re: Password to be able to close a form

    Quote Originally Posted by royUK View Post
    You can use code to prevent the user closing the form with the red X, then add a button that requires a password before closing.

    Please Login or Register  to view this content.
    This will probably cause problems closing the workbook. The simplest solution is to make the data sheet very hidden
    Thanks for the help royUK,

    I went the simple road tho. Took away the possibility too close down the form with the "X" and added a button, put it to the smallest possible, and transparent and put it in the down left corner. and ofcourse put a "close" macro in it.

    Anyway thanks for the help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1