Results 1 to 2 of 2
  1. #1
    54.69.6d.20 is offline Novice
    Windows XP Access 2003
    Join Date
    Jun 2012
    Posts
    21

    permission to change a text box

    I have a Employee table in which I use to setup permissions to be able to access curtain things, however, I'm stuck on how to give permissions to change a value in a text box.

    I have a search Manufacture Form and when you search it, will show the results in another form. I want to give access to curtain people to make changes to the price field without going into the table manually.

    In the Employee table I have a field called EQUIPlookUpChange (0=no access and 1= access)

    Code:
    Private Sub TextField1_Change()
    If EQUIPlookUpChange Then
      ????????TextField1_Change
      Else
      MsgBox "You don't have access to make changes.", vbOKOnly, "Admin"
     End If
    End Sub
    Thanks for the help. Not having the greatest of days

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    so you have a login to your database and are able to differentiate users just fine?

    If so all you have to do is lookup that user's permission and either lock or unlock the field in question at the time the form is opened. You don't want to have to check the permission every time it's accessed assuming you don't have multiple people using the same database at the same location at the same time.

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

Similar Threads

  1. Can't change Binary format to Text
    By fdormoy in forum Database Design
    Replies: 11
    Last Post: 07-17-2014, 06:23 AM
  2. Text box change color
    By Ray67 in forum Forms
    Replies: 14
    Last Post: 11-19-2012, 04:06 PM
  3. how change Text field to Check box.
    By qazi in forum Queries
    Replies: 3
    Last Post: 10-01-2012, 04:41 AM
  4. Change color on text using column value?
    By PoorCadaver in forum Programming
    Replies: 5
    Last Post: 03-02-2012, 09:52 AM
  5. Replies: 1
    Last Post: 03-18-2009, 12:30 AM

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