473,405 Members | 2,344 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Creating Users

266 256MB
I have used the user-level security wizard to set up users and permissions. This is working great but i was wondering if its possible to display a form for a specific user. for instance if user "A" logs in, can i have it automatically open form "A" and user "B" form "B" and so on? thanks for your help.
Apr 11 '11 #1
1 1183
Lysander
344 Expert 100+
You can use the CurrentUser function in your startup code.
e.g.
Expand|Select|Wrap|Line Numbers
  1. if CurrentUser="Lysander" then
  2.      docmd.openform "frmLysander"
  3. else
  4.   etc
  5.  

or, if you have loads of users, name the form after the user name and do this
Expand|Select|Wrap|Line Numbers
  1. dim strString as string
  2. strString="frm" & currentuser
  3. docmd.openform strString
  4.  
If you are putting your users into groups (always recommended), then you can use the funcion ismemberof

I use that below, to display certain options to certain groups
Expand|Select|Wrap|Line Numbers
  1. tabAdmin.Visible = ismemberof("superAdmin")
  2. tabEdit.Visible = ismemberof("Administrator")
  3. bDisableBypassKey.Visible = (CurrentUser = "Owner")
  4.  
  5.  
Apr 13 '11 #2

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

Similar topics

1
by: Jean-Francois Boisvieux | last post by:
the subject is the question, anybody could provide me a pointer on this subject ? Thanks JF
0
by: Michael Iatauro | last post by:
I've been having a little trouble creating users cross-platform. I have a little script that works just fine on Solaris 8 using this command: eval "/path/to/mysql --user=root --password=*****...
10
by: Gerald | last post by:
I'm new to DB2, I have over 10 years of experience on Oracle. I actually have to books on order that might help. Till then I have been searching and reading through IBM's DB2 Information Center,...
1
by: B. Zuidgeest | last post by:
I use C# to connect a database with student information directly to the Active Directory (2003). This means that as the student is enlisted an account and mailbox is created in the active...
0
by: richb330 | last post by:
I'm trying to set up a program that will create new user accounts in a windows 2003 domain. i am using ADSI, i have imported the directoryservices name space and I have set the basic variables. ...
1
by: BobLaughland | last post by:
Hi There, I am creating an ASP .NET 2.0 web page using c#. I am using the 'CreateUserWizard' control to add users to my site. Just wondering whether there is a programatic way to do this. ...
5
by: rAinDeEr | last post by:
Hi, Y'day one of my friend showed me how to connect to a Oracle database as SYSDBA, DBA etc I have DB2 UDB installed in Linux machine.Right now, I have a user WADI which has got some...
0
by: cada0310 | last post by:
Hi there, Fairly new to ASP.NET, but I'm messing with the built-in user & role management functionality. I've created the database using the aspnet_regsql.exe tool, and used the ASP.NET web...
0
by: Jeff | last post by:
ASP.NET 2.0 I created 3 users in my website. After creating these 3 users I wanted to make the password less restrict so I added the settings below to my web.config. (that means the 3 users...
1
by: brig | last post by:
Hi All, I have a Table (STDTable) with 3 columns: STDAccount, STDpassword, IRowId. I am getting a user conflicts error when I 'get the next' user info from the table. I am using SQLDeveloper. ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.