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

Limited access to a log-in form using vba code

I have a db which has table by the name tbemployees, with fields:
lngEmpID
strEmpName
strEmpPassword
strAccess
I have 4 users with strAccess rights
1. Admin
2. UserA
3. UserB
3. UserC
I have 3 tables with name:
OptionA
OptionB
OptionC
I have swithchboard form with:
OptionA
optionB
OptionC
My question is: when userA login he should only view OptionA and userB should only be able to OptionB and so for user C as OptionC
Is there a way to do this through VBA code.
Jun 21 '13 #1
2 1269
zmbd
5,501 Expert Mod 4TB
Short answer is yes.
Long answer is that there are literally as many ways to do this as there users of the MSAccess program.

Which version of MSA are you using?

IF it is 2003 or older, when you say "Switch Board" do you mean a main form that you've created or the "Switch Board" functionality as provided by these older versions?

Please keep in mind that Bytes is not a code nor homework service; thus, we'll not be able to provide you with a compleated solution; however, as you progress thru this project we'll lend a hand in solving any clearly stated issues you run into.
Jun 21 '13 #2
1st thank you for your response. I am using 2003 version. Yes the switch board is created with the built in functionality.
I just need how to create a vb code to so that when user Admin logs in he should be able to have full excess and the other users A;B;C should have acess to OptionA;OptionB;OptionC, respectively.
Jun 22 '13 #3

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

Similar topics

3
by: Rudi Groenewald | last post by:
Hi there... I use SQL server integrated security so when a user opens a database in access it prompts the username & password in a small popup box on connection, but I'd like to use my own...
3
by: Craig Brown | last post by:
I would like to open selected (Filtered) records in a form. I currnetly have a custom menu but would like to only open certain records from i.e Button 1 will open Site 1 Button 2 will open...
7
by: Nerrad | last post by:
Hi, i am currently working on a project which requires me to create a form to allow the user to change their password. I know there is a user-level security login which is easier and safer but...
3
by: Gerrit Snel | last post by:
We have a question but we're in doubt if it's even possible or not. The question is as follows: Is it possible to access a form using a string literal, and if so yes? We want to use...
13
by: knot2afrayed | last post by:
I am trying to fix error- object does not exist- I want it possible to allow object not to exist. I am writing a script on a page that may or may not include a login form. For example-after a...
1
by: garry.oxnard | last post by:
Can anyone help me to solve a problem which involves switching from Access to Excel (then back to Access) programatically please? I have an Excel template which, on open, also opens an Access...
1
by: vidhyaprem | last post by:
i have started a small project in visual basic regarding the stock details in our textile company.It has details like product id,product name,no of items,product picture etc.. so i have created a...
1
by: kkk1979 | last post by:
Hi I have been using access 2000. I need help in creating Label controls in an access form with VBcode. Are there Label arrays in access ? can anyone help please ......... Thanks in advance
3
by: stumo | last post by:
Hi I'm fairly new to access and as such my experience of VBA is somewhat limited. I have a login form which is linked to an "employees table" which asks for users to enter their name and...
2
by: zandiT | last post by:
Hey, FRMLOGIN CODE Private Sub Form_Load() If userdeptid = 1 then me.Controlname.visible = false end sub i managed to get the swichboard to open from a succesful login but now i want...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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:
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...
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: 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...

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.