Results 1 to 2 of 2
  1. #1
    Paul H's Avatar
    Paul H is offline Expert
    Windows XP Access 2010 32bit
    Join Date
    Sep 2011
    Location
    Richmond, VA
    Posts
    591

    Text box won't lock

    I have a Social Security text box that won't lock. I've set the locked property to Yes, but you can still change or delete the number in the form. I've tested other boxes on the form and the same thing works there. I am leaving the box Enabled, partly for cosmetic purposes, but this should work. I've done it countless times before.



    Click image for larger version. 

Name:	text box locked.JPG 
Views:	9 
Size:	47.7 KB 
ID:	27811

    Puzzled,

  2. #2
    Paul H's Avatar
    Paul H is offline Expert
    Windows XP Access 2010 32bit
    Join Date
    Sep 2011
    Location
    Richmond, VA
    Posts
    591
    Dammit, found it. I had this code in the Form Load event which is exactly what I want, only manager (mgr) should be able to edit here. Myself, being a manager, kept the box from staying.

    Code:
    If gblUserClass = "Mgr" Then Me.SSN.Locked = False
    Tempest in a teapot.

    Paul

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 10-15-2012, 01:25 PM
  2. lock the editing of combobox text
    By Grooz13 in forum Forms
    Replies: 14
    Last Post: 10-23-2011, 02:08 PM
  3. Replies: 1
    Last Post: 07-18-2011, 03:08 AM
  4. lock a record
    By Nokia N93 in forum Programming
    Replies: 3
    Last Post: 02-21-2011, 02:51 PM
  5. Lock Down
    By KevinMCB in forum Forms
    Replies: 2
    Last Post: 02-14-2011, 03:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums