+ Reply to Thread
Results 1 to 9 of 9

How to lock cells

  1. #1
    Registered User
    Join Date
    10-17-2010
    Location
    Naga, Philippines
    MS-Off Ver
    Excel 2003
    Posts
    42

    How to lock cells

    ok I ask mr google how to lock selected cell in ms access 07 like excel do.... i only get the "How to lock the worksheet" thing... i cant figure it out... i have my records in table1, created a form... what i want is i want to protect table1 by locking selected cell so that no one can edit it, for example field 2 protected you cant edit it, field3 unprotected you can edit it... like in excel its what you called protect sheet but u can unlock some cell you want to edit, does ms access have this kind of features too? i only know is when you open a data base it will prompt you a pw... but still can edit cells...

    hope you understand my point.. kindly help..

    thanks in advance....
    Last edited by phatus; 10-22-2010 at 12:58 AM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,705

    Re: How to lock cells

    You will have to use VBA to do this. For each text box that you want to have locked, you will need to open the properties for the form, select the events tab and on the events tab, select On Load. Your code will need to then follow the format "me.textbox.enable = false" for each of the textboxes you wish to lock. BTW, how will you enter new data if these fields/controls (cells are in Excel) are locked. Will that be a need or is no new data entered?

    Alan
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Contributor
    Join Date
    04-23-2009
    Location
    IOWA
    MS-Off Ver
    2010 Professional
    Posts
    270

    Re: How to lock cells

    Or when you are in Design View you can click on the field you want to "Protect" and go to the Data Tab and change locked to yes.

    Hope this helps,

    Dan
    "I am not a rocket scientist, I am a nuclear engineer." - Split_atom18
    If my advice has been helpful to you, then please help me by clicking on the "Star" and adding to my reputation, Thanks!

  4. #4
    Registered User
    Join Date
    10-17-2010
    Location
    Naga, Philippines
    MS-Off Ver
    Excel 2003
    Posts
    42

    Re: How to lock cells

    if im going to edit it im going to unlock it... or is it possible a pw will prompt when your going to edit it? ill try it in the office sir thnks....

  5. #5
    Registered User
    Join Date
    10-17-2010
    Location
    Naga, Philippines
    MS-Off Ver
    Excel 2003
    Posts
    42

    Re: How to lock cells

    by the way sir i recall i see a access database when you open a database file it open directly to the form it self and the table where the information is saved is hidden.... how to do it sir? example when you open the database the file it self open in the form... like in power point you can save a powerpoint presentation no need to go to powerpoint program.. it open directly the presentation it self... does access have that too? it open directly in the form.. the purpose of it so the one who will open the database can only access in the form and cannot edit changes in some things..

    hope you get what i mean sir...

    very thanks for the advise...

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,705

    Re: How to lock cells


  7. #7
    Registered User
    Join Date
    10-17-2010
    Location
    Naga, Philippines
    MS-Off Ver
    Excel 2003
    Posts
    42

    Re: How to lock cells

    is it the same in access 07?

  8. #8
    Registered User
    Join Date
    10-17-2010
    Location
    Naga, Philippines
    MS-Off Ver
    Excel 2003
    Posts
    42

    Re: How to lock cells

    i got it i can now lock cells in forms.. now my problem is the startup... only forms should appear when you open the database... the guid is 2003 can find it in 2007...

  9. #9
    Registered User
    Join Date
    10-17-2010
    Location
    Naga, Philippines
    MS-Off Ver
    Excel 2003
    Posts
    42

    Re: How to lock cells

    i solved it thanks for the hint

+ 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