Accesing switchboard controls in the login form source code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zandiT
    New Member
    • Sep 2008
    • 48

    #1

    Accesing switchboard controls in the login form source code

    Hey,

    FRMLOGIN CODE

    Code:
    Private Sub Form_Load()
     If userdeptid = 1 then
     me.Controlname.visible = false
     end sub
    i managed to get the swichboard to open from a succesful login but now i want some controls to be hiddien depending on who logged in. how do i get to the swtich board controls from code in the login form because line 3 is giving me controls for the current form, login form
    thankyou
  • zandiT
    New Member
    • Sep 2008
    • 48

    #2
    its okay i figured it out. i had to put the code in the form load event for the switch board, not the login form

    Comment

    • NeoPa
      Recognized Expert Moderator MVP
      • Oct 2006
      • 32669

      #3
      Well, That was an easy one ;D

      Welcome to Bytes!

      Comment

      Working...