473,387 Members | 1,374 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.

Multi user login form questions about greater security

I currently have a working multi user login form in access 2007. It automatically redirects people who login to a user specific form e.g. user = staff1 is moved to form staff1 and manager1 is redirected to form manager1. I have used the following code.

Expand|Select|Wrap|Line Numbers
  1. Username.SetFocus
  2. If Username = “Staff1” And Password = “Staff1” Then
  3. MsgBox “Welcome”
  4. DoCmd.Close
  5. DoCmd.Openform “Staff1”
  6. ElseIf Username = “Staff2” And Password = “Staff2” Then
  7. MsgBox “Welcome”
  8. DoCmd.Close
  9. DoCmd.Openform “Staff2”
  10. ElseIf Username = “Manager1” And Password = “Manager1” Then
  11. MsgBox “Welcome, please use caution when making changes”
  12. DoCmd.Close
  13. DoCmd.Openform “Manager1”
  14. Else
  15. MsgBox “Please re-enter username and password”
  16. End If
I have just a few questions.
1. At the moment this form is little more than a gimmick as anyone entering the program can access all objects in the navigation pane with a single click WITHOUT logging in. Is there a way to prevent users accessing objects in the navigation pane without logging in? I also want prevent users accessing items that aren’t on the relevant forms e.g. the manager1 form gives the user access to all objects in the navigation pane whereas the staff1 and staff2 forms only allow access to different forms.
2. Is there a code that will restrict the number of times you can re-enter the username and password?
3. If there a way of tracking users once they have logged in. I have table which shows data that has been edited and would like to be able to add a field which shows which user edited the data?
4. Is there a way of restricting things like the design view on forms?
Oct 28 '12 #1
5 2688
TheSmileyCoder
2,322 Expert Mod 2GB
1. Yes
2. Yes
3. Yes
4. Yes

But each is a rather large question in it self, and we only allow 1 question per thread to keep matters simple.


Regardless we will need to know whether people besides you need to have access to change objects. Lets make clear immediately that by objects we talk about forms, table design, query design and report design. Most databases are developed by a single developer (or a small group) and used by several people.

If the setup is one where you are the sole developer it makes it a whole lot easier, so I will hold out on answering any of the questions, untill we have heard back from you.

Could you tell us the version of access you are using, and whether the database is split in a backend data storage and a frontend client?
Oct 28 '12 #2
NeoPa
32,556 Expert Mod 16PB
To be absolutely clear, these questions cannot be answered in this thread. They need to be asked separately and clearly each in their own threads (As Smiley has indicated in his post).

I can say that we're happy to anticipate these questions when you do post them, but please remember also to ensure that code is copied directly from your project and you don't type it out freehand or copy it in from a word processor (as appears to be the case here). Also that code of any complexity (more than a couple of lines at most) includes the procedure header and footer. With more experience I'm sure you'll appreciate this for yourself, but it can be critical information that is all too frequently left out of posts.

Feel free to post a link in here when any of your new questions have been posted to ensure that any who are already interested will notice them. I'll be happy to convert a comment into a link if you're not sure how to go about setting up a link. Just post saying you've created a new thread and I'll sort the rest out for you.
Oct 28 '12 #3
Thanks, first of all to both of you. As soon as I start the new threads I will post relevent links on here. In answer to your questions.
I am the sole developer.
I am using access 2007
I will not be the only person who needs to make changes.
And I am in the process of splitting the front and back ends to the database. But I do have a question about this as well.
Oct 28 '12 #4
TheSmileyCoder
2,322 Expert Mod 2GB
Do the other users need to make object design changes or only data changes?
Oct 28 '12 #5
Hi,

here are the relevent links so far:

http://bytes.com/topic/access/answer...g-logged-users

http://bytes.com/topic/access/answer...avigation-pane

http://bytes.com/topic/access/answer...enter-password

and in answer to your question some users will only need to perform data entry but others may need to perform design changes as requirements change.
Oct 29 '12 #6

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

Similar topics

8
by: Phil Coen | last post by:
I have never tried to build a web site to restrict users. Before, I always wanted everyone to be able to get to everything that I put on one of my sites. So now I am trying to write (actually...
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...
10
by: Deano | last post by:
Hi, I feel I have a good learning opportunity here. I have been asked to knock up a simple db for managing lettings of rooms and halls. I'm confident about the design but want to make it...
3
by: Bob | last post by:
I haver a user login form (winforms app using vs2005 in VB.NET). After succesfull validayion of user I want to open a first form and close the loging form that was used, If I write If...
3
by: freee8896 | last post by:
Can nyone help me with this multi user login from the same system. Multiple users must be able to login from the same system at a time.... in PHP. Sessions must be used. Please donot suggest these...
0
by: kalukum | last post by:
Hi...Friends I'm using oracle10g with developer 6i. I want create my own user login form and validate the user in my user table. that user table has created myself in my database. Eg: 'kalukum'...
19
by: klenwell | last post by:
Another request for comments here. I'd like to accomplish something like the scheme outlined at this page here: http://tinyurl.com/3dtcdr In a nutshell, the form uses javascript to hash...
0
by: sandari | last post by:
The following code (web.config in Visual Studio 2005) is supposed to redirect a user to the appropriate Form depending on their role. However, regardless of the user's role, the only page...
11
Stang02GT
by: Stang02GT | last post by:
I am in the process of creating a database for a "Team" here at work. One thing that needs to be incorporated with this database is each user will have a log in and password I know how to do that. ...
1
by: Evelyne | last post by:
Private Sub cmdOK_Click() Dim cn As New ADODB.Connection Dim obj As New ADODB.Command Dim rst As New ADODB.Recordset On Error GoTo Err_Handler Set cn = CurrentProject.Connection
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
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
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...

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.