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

unhide/hide controls tab for different users

1
i have created the login form for different users. the user must enter the username and password if both of this are correct the Grant form will open. the grant form has the tab control with 4 pages.If its user1 the Grant form must show only 3tabs and if is other users it must show all the tabs.
ive try this code

Dim frm As New Exe
If Me.StrEmpPassword.Value = "xoliswa" And Me.StrEmpName.Value = "xoliswa" Then
DoCmd.Close acForm, "Login Form", acSaveNo
DoCmd.OpenForm "Exe"
frm.Page4.Visible = True

ElseIf Me.StrEmpPassword.Value = "linda" And Me.StrEmpName.Value = "linda" Then
DoCmd.Close acForm, "Login Form", acSaveNo
DoCmd.OpenForm "Exe"
end if
May 3 '10 #1
0 1274

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

Similar topics

1
by: Nita Raju | last post by:
Hi, In my application i have to use different XML files for different users. I use the cache dependency for the Xml file with the dataset. When multiple users are accessing the site will there...
3
by: Nerrad | last post by:
hi guys, i have a project on my hand and what i'm told to do is to create a log-in feature using tables and forms. Da question is that is there any way to allow different users different access...
9
by: antonyliu2002 | last post by:
I am not sure how to google this concept. Basically, what I wanna do is to direct different users to different pages. I do not have a whole lot users. For example, if user name 'tomcat'...
0
by: Patrox | last post by:
hi ! in mysql doc it is stated that : "MySQL supports local transactions (within a given client connection) " ref : http://dev.mysql.com/doc/refman/5.1/en/transactional-commands.html but what...
0
by: mankolele | last post by:
Hi I need to have two different users LOG in on to my page.Each of them have their own tables to where their data is stored and I have a separate users table which has username and password,then...
4
by: Kev | last post by:
Hello Everyone, I am attempting to customise subform datasheet columns for different users by making them visible or not depending on which ward they are in. I am using the tag property on the...
1
by: Gilberto | last post by:
Hello, I have created my first DB which will be used by 5 different persons and will be accessed through the intranet. I was wondering if access allows to have the same DB to be open and modified...
2
by: sugapablo | last post by:
I have a server where two different users are each running a different web application. I installed SugarCRM for one, and Info@Hand (built from SugarCRM) for the other. Both are trying to save...
4
by: sandeepsangshetty | last post by:
Hi friends, I designed one master page in my application. Here i am stuck up with hiding the content for the different users login. If the login user is Admin he needs to see some content and...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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,...

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.