Results 1 to 6 of 6

Thread: SSTab with diff dept and how user access each tab?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 2005
    Posts
    19

    SSTab with diff dept and how user access each tab?

    Hi All,

    Is me again.. Hope you all will not feel i am so troublesome posting some silly questions always. Hehe..Here is my question

    I have different dept in the SSTab.Altogether is 4 Tab,alright?Then, the user from this dept,let's say is repair dept can see the data from other dept,let's say is store dept. They might need to key in some data to the repair dept.

    How am i going to enable them to key in some data in the field and some is disabled it? In such situation, is it means i have to do like as below:-

    txtEngineer .enabled = True
    txtVendor.enabled = False

    till all the data is being set?

    It is quite confusing if it really so. Pls help me. Thank you every body..

    Have a nice day

  2. #2
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: SSTab with diff dept and how user access each tab?

    here is an idea:

    In each text fields TAG property.. enter the dept name of who can use it like

    txtVender.Tag = "repair service store" (enter each dept name thats allowed)
    VB Code:
    1. Public Sub SetSecurity(SecLevel As String)
    2. Dim ctl As Control
    3. For Each ctl In Me.Controls
    4.     If TypeOf ctl Is TextBox Then
    5.         If InStr(ctl.Tag, SecLevel) = 0 Then
    6.             ctl.Enabled = False
    7.             ctl.BackColor = vbButtonFace
    8.              
    9.         Else
    10.             ctl.Enabled = True
    11.             ctl.BackColor = vbWindowBackground
    12.         End If
    13.     End If
    14. Next
    15. End Sub
    16.  
    17. Private Sub Form_Load()
    18.     SetSecurity "store"
    19. End Sub
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: SSTab with diff dept and how user access each tab?

    Is this the same question you have in your other thread?

    If so, why are you making two threads for the same thing?

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Nov 2005
    Posts
    19

    Re: SSTab with diff dept and how user access each tab?

    No.This is related to SSTab. Because all of my data is inside the SSTab.Therefore, i will ask questions regarding that but it is the different problems that i faced.

    Ok,make it simple then. Actually, i want to make the user of current dept can view or update things in other dept. How can i make it view something in other department and at the same time some of the data it can add and update it? If like that, then i must do many time enabled and disabled stuff?

    Pls help.Thank you everyone

  5. #5
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: SSTab with diff dept and how user access each tab?

    frimily.. read my post..
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Nov 2005
    Posts
    19

    Re: SSTab with diff dept and how user access each tab?

    I've tried to use the code given,but when i login, the password login field is automatically disabled. Can i try the other way?

    When the user of a dept,let's say is service dept login, they only manage to c their own dept, the other 3 tabs are invisible from them. Wat code should i put to make that?

Posting Permissions

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



Click Here to Expand Forum to Full Width