473,396 Members | 1,918 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,396 software developers and data experts.

Need help accessing different forms

Here's what i need to do, keep in mind that I'm new to access and have learned coding is the same as excel.

I have 2 different types of users, those that are users and those that are admin. I have 2 different forms, the user form allows users to see thier data and add to it. the admin people have a different form that allows them to see all records and edit delete and so on.

here's how it flows.

login form takes them to startup form, which just tells them things are loading, then I want that form to direct them to either

frmswitchboarduser for the users or
frmswitchboard for the admin.

I have been looking at all kinds of dlookup code but can't seem to find what i need.. Thanks for any help

Bad Bruce
May 19 '06 #1
1 1445
PEB
1,418 Expert 1GB
Here's what i need to do, keep in mind that I'm new to access and have learned coding is the same as excel.

I have 2 different types of users, those that are users and those that are admin. I have 2 different forms, the user form allows users to see thier data and add to it. the admin people have a different form that allows them to see all records and edit delete and so on.

here's how it flows.

login form takes them to startup form, which just tells them things are loading, then I want that form to direct them to either

frmswitchboarduser for the users or
frmswitchboard for the admin.

I have been looking at all kinds of dlookup code but can't seem to find what i need.. Thanks for any help

Bad Bruce

In your form for login in the login bouton you need to create an After Update Event:

I which you have to verify is the user is admin or no

If (he/she is admin) then
DoCmd.OpenForm "AdminSwitchboard", A_NORMAL, , , A_EDIT, A_NORMAL
else
DoCmd.OpenForm "UserSwitchboard", A_NORMAL, , , A_EDIT, A_NORMAL
end if

Have a nice day!

:)
Sep 9 '06 #2

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

Similar topics

3
by: Martien van Wanrooij | last post by:
I am working on a site with some pages that all have a form that starts with a group of radiobuttons. By default none of the buttons is checked. Before submitting the form there is a validation...
6
by: Chris Styles | last post by:
Dear All, I've been using some code to verify form data quite happily, but i've recently changed the way my form is structured, and I can't get it to work now. Originally : The form is...
19
by: James Fortune | last post by:
I have a lot of respect for David Fenton and Allen Browne, but I don't understand why people who know how to write code to completely replace a front end do not write something that will automate...
2
by: pv | last post by:
Hi everyone, I need help with following scenario, please: Users are accessing same web server from intranet (users previously authenticated in Active Dir) and from extranet (common public...
8
by: Mike Caputo | last post by:
In VB.NET, need to be able to access certain properties on my main form from other forms. These are properties that may be changed by the user, so I have to be able to get to them throughout the...
3
by: Mike N. | last post by:
Using VB.Net and ADO: I've created a public variable on my main form and set it to = a dataset which was crrated with the designer. I have another form with a datagrid on it. In the designer,...
12
by: gcary | last post by:
I am having trouble figuring out how to declare a pointer to an array of structures and initializing the pointer with a value. I've looked at older posts in this group, and tried a solution that...
3
by: judy.j.miller | last post by:
Does anyone know why i can't access a form element value using dot notation in firefox, when i'm in a function. Works ok in the body. I'm trying to do this: var FarTemp = faren.temp.value; I...
16
by: s0suk3 | last post by:
This code #include <stdio.h> int main(void) { int hello = {'h', 'e', 'l', 'l', 'o'}; char *p = (void *) hello; for (size_t i = 0; i < sizeof(hello); ++i) {
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
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...

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.