473,503 Members | 6,354 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Accesing switchboard controls in the login form source code

48 New Member
Hey,

FRMLOGIN CODE

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
thankyou
Sep 23 '08 #1
2 1465
zandiT
48 New Member
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
NeoPa
32,557 Recognized Expert Moderator MVP
Well, That was an easy one ;D

Welcome to Bytes!
Sep 23 '08 #3

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

Similar topics

2
6561
by: Dejan M. | last post by:
Can you help me? I have 9 forms in the base. 2 forms are opening as single and 7 as datasheet. Thats OK, but when I used Switchboard manager, with him all of my forms are opened as single. How can...
7
5950
by: aaaaaa | last post by:
Hi, I created some forms and during the wizard I chose the Datasheet View, and when I open the forms from the main objects window they open up in datasheet view. But when I created a switchboard...
2
2149
by: Terry | last post by:
I have created a switchboard, created using Access 2000. If I put the mouse anywhere on the form, outside of the checkboxes and scroll the wheel backwards, I get the following error. Run-Time...
2
13944
by: tdmailbox | last post by:
I am in the process of finishing up moderate sized access database application. I am in the process now of building a switchboard to house all the forms and reports. I decided the in built in...
1
2664
by: mplus_2000 | last post by:
I have recently inherited a database. The switchboard (and other forms) displays the name of the database on it (top, center). Currently the name that appears is Reviews. There are plans to roll...
1
6418
by: pj | last post by:
I'm trying to redirect users to another page after they Authenticate with the ASP.NET login controls. The user is able to login, but I can't get the response.redirect to work. Can anyone help? ...
1
1100
by: marynet | last post by:
Hi! How I can call a Switchboard Form? I have a Switchboard form in my aplication, but I want that other form (login) be my first form and this form (login) call the Switchboard form. how i...
3
1531
by: allj | last post by:
I want users to be able to name the switchboard. I added a new field in the switchboard items table called name and changed the labels to txtboxs with a record source to name. If this isnull a form...
16
4134
by: Mike | last post by:
Hi, I have a form with some controls, and a different class that needs to modify some control properties at run time. Hoy can I reference the from so I have access to its controls and...
0
7207
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7357
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7012
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5023
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4690
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3180
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1522
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
748
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
402
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.