By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,859 Members | 1,301 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,859 IT Pros & Developers. It's quick & easy.

Accesing switchboard controls in the login form source code

P: 48


Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_Load()
  2.  If userdeptid = 1 then
  3.  me.Controlname.visible = false
  4.  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
Sep 23 '08 #1
Share this Question
Share on Google+
2 Replies

P: 48
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
Sep 23 '08 #2

Expert Mod 15k+
P: 31,758
Well, That was an easy one ;D

Welcome to Bytes!
Sep 23 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.