User Authentication System For Access 2007 Questions

Jan 1, 2008

Alrighty -

After learning that 2007 has no User Security roles, and not having Sharepoint or a SQL server, I decided to work starting with Bob's Simple Login script located here (http://www.btabdevelopment.com/main/AccessSamples/tabid/54/Default.aspx).

I've got it functioning fine and incorporated some of the options also made available here (http://www.databasedev.co.uk/login.html).

You'll see the code below used to store info in a hidden form that is holding the username and permissions level. I'm looking to try and store this information into a global variable instead of a hidden table.

I know that I could define it as a variable right here in the code, but how do I define it as a Global variable so I can use it later in the application in the VBA?


Private Sub cmdLogin_Click()
Dim strUser As String
Dim strPWD As String
Dim intUSL As Integer

strUser = Me.txtUser
If DCount("[UserPWD]", "tblUsers", "[UserName]='" & Me.txtUser & "'") > 0 Then
strPWD = DLookup("[UserPWD]", "tblUsers", "[UserName]='" & Me.txtUser & "'")
If strPWD = Me.txtPwd Then
intUSL = DLookup("[SecurityGroup]", "tblUsers", "[UserName]='" & Me.txtUser & "'")
Forms!frmUSL.txtUN = strUser
Forms!frmUSL.txtUSL = intUSL
Select Case intUSL
Case 1
DoCmd.OpenForm "frmHome", acNormal
Case 2
DoCmd.OpenForm "frmHome", acNormal, , , acFormReadOnly
Case 3
MsgBox "Not configured yet", vbExclamation, "Not configured"
Case 4
MsgBox "Not configured yet", vbExclamation, "Not configured"
End Select
DoCmd.Close acForm, "frmLogin", acSaveNo
Else
If MsgBox("You entered an incorrect password" & vbCrLf & _
"Would you like to re-end your password?", vbQuestion + vbYesNo, "Restricted Access") = vbYes Then
Me.txtPwd.Value = ""
Counter = Counter + 1
If Counter = DLookup("[OptionValueNum]", "tblOptions", "[OptionsID]=1") Then
MsgBox "You have entered an incorrect password too many times. This database will now close!", vbCritical, "Wrong password!"
DoCmd.Quit
End If
Else
DoCmd.Quit
End If
End If
End If
End Sub

View Replies


ADVERTISEMENT

User Authentication !!!

Apr 14, 2005

Hi All,
Im a beginner in Access.I created 2 tables-First one has the User-ID , Password and other details, Second table has All the personal details of those users.I have created a form with 2 text boxes and a button. The User enters his ID and Password and "Submits" it.
I want to check his User-ID , Password with the data present in the table and if that is correct- display another form with all his details...
How do I do that..?? please help me with this...
Thanks in Advance...
bye.

View 1 Replies View Related

New Access User Questions About Our Library DB

Feb 8, 2007

Hello,
I'm new to Access. I've recently started helping here at a non-profit literacy org. They have a small library and they were keeping track of it in an Excel spreadsheet. I moved it over to an Access database which seems much more appropriate and better in a lot of ways... Anyway, I'm not sure where to look or even exactly what I need to ask but here goes.

I think what we want to do is something like an invoice. The current database has one record for every book in the library and each record has fields like: book name, checked out (yes/no), date due, and borrower name.

It was nice and easy to write a little query with "<date()" on the due date field to generate a list of overdue books, then we used Word to merge the data and generate letters to send to the people with the overdue books. The problem is that most people have checked out more than one book so our simple merge ends up making one letter for every overdue book.

The first thing we'd like to accomplish is: how do we make a table? querry? report? which makes a new table with one record per borrower then each of the books that borrower has checked out?

It doesn't matter to me which way we do it, just so long as we can end up making just one letter per borrower, with that letter having each of the books listed. This seems kind of like an invoice to me, so maybe if I looked at invoice examples that would help? But that might just be more complicated and confusing?

If it's not too hard, there's a 2nd thing we'd like to do, and that is to, either from a 2nd database, or from data in the same database, but in a different "table"(?) get the person's address and merge that into the letter too, based on the borrower name.

Sorry if I'm being an annoying NOOB ~ if you think there are some things I should read first before asking these sorts of questions, perhaps you can point me too them? I'm at the stage where I don't even know enough to know what I don't know yet.

Just for reference, I do have tons of general PC & software experience, and have learned the C/C++, BASIC, Pascal, FORTRAN (77), 65816 assembly/machine code, and even a little LISP.

:)

Christopher

View 10 Replies View Related

Microsoft Access Authentication

Oct 4, 2005

For a databse which I am going to create, I would like to have an authentication system which utilises the database users which I specify, however instaed of using a password the idea would be to use a fingerprint scanner to logon. T^his would be for an A - Level IT project and I would seriously like to know how to integrate biometric security into a database. If anyone knows how to do this please post CLEAR instruction possibly with some SCREENSHOTS if possible.

Thanks

View 1 Replies View Related

Authentication Problem To MS SQL SERVER From MS ACCESS App

Jul 12, 2005

Hi.
I recently created SQL SERVER backend for my MS ACCESS app. (I upsized ONLY the tables, so the ACCESS app contains linked tables).

The SQL SERVER resides on a different machine than the MS ACCESS app.

Every time that I run the ACCESS app, it fails to connect to the SQL SERVER ("Login failed for user 'xxx'") and it prompts me for user name and password.
After I give it the right user name and password, no probs.

The problem is that ACCESS doens't save the new user name and password.
So every time that I run the app, again, it uses the wrong default user name and password (I don't know where it gets it from), and I need to re-enter the correct one.

HOw can I solve it?

Thank you very much
Roy

View 3 Replies View Related

Access 2007 User Level Security

Mar 13, 2007

As I'm sure many of you know, Access '07 no longer supports user level security.

My question to you all is, how do you secure your DB's in '07? I just built a DB that stores patient data, and it needs to have some type of user authentication to gain access to it.

I know I can assign a general password to it, but I need each user to have their own username and password.

View 2 Replies View Related

Access 2007 User-Level Security

Mar 10, 2008

Why the new format .accdb does not support user-level security? I know Access 2007 still supports the old format .mdb, but why is it deprecated in the new one? Does microsoft want us to buy SQL Server instead of Access to support user-level security?

View 1 Replies View Related

Access 2007 User Level Security Articles

Jan 30, 2008

Has anyone seen any good links to explain why Microsoft discontinued User Level Security in Access 2007? If so can you post the links. There is a debate at my work and I want to get all the infomation possible. It is my understanding that the beefed up the encryption on the standard password so the did away with ULS.

View 5 Replies View Related

Modules & VBA :: Access 2007 - Retrieve Current User And Show Ribbon

Oct 7, 2013

I want to show one ribbon for any user level.

Into attach file I use a UserTable to test different user/level.

I retrieve this error: Error 438"Object Doesn't Support This Property or Method" ...

View 2 Replies View Related

New User Questions

Jul 20, 2005

Hi All:

I'm brand new to this software and trying to write a simple database to keep track of departmental billings for our university copy center. I have two different manuals and yet can't seem to find the answers to very simple questions!

I am trying to create a one-to-many relationship between a table containing departmental account information and a table containing copy center orders. Following the instructions I've got available, I can only seem to create a one-to-one relationship. What am I doing wrong?

Also, I've created a form for the departmental table with a subform to enter the various employees of that department. That's working fine but the formatting on the subform looks terrrible - I'd like to make it match the background of the main form. I spent hours trying to figure this out yesterday and no luck. I get what I want in design view but it won't translate to form view no matter what I do. Any help would be greatly appreciated!

Finally, I have a question about using the form. When I begin to enter a new record, I'd like the form to go ahead and pull up the information if I put in a redundant account number. Right now if I put in an account number already in the database, the employees of that department pop up in the subform but no other information appears on the form. Will I need to write a query to make sure this happens? (Pardon me for being so clueless:rolleyes: )

Thanks ahead of time for any help you can give!
Amy

View 6 Replies View Related

How Do I Log Out On Users On A Multi-user System?

May 27, 2005

I run a multi-user system of over 200 users. The only facility I have for advising an office-wide logout is required is the email system. However, staff either don't read their email or forget so I have to run around like a headless chicken trying to get everyone to get out/stay out of the system while I perform maintenance etc. Is there a way to enforce a logout and keep users logged out until a requested time without spending a fortune on new software?
Any advice would save me a lot of hair pulling (not mine :)).

View 2 Replies View Related

Very Basic User Login System

Oct 23, 2007

Hi,

Sorry if this has been covered before but I couldn't find a post on it anywhere.

I have a login form but am not sure where to go with it now. I want the "Login" button to look up the username in the table "users" and check the password with the one submitted in the form. After this has been authorised I have also created field "permissions" in the users table and I would like that permission to be assigned to the users session.

Thanks,

Chris Farrants

View 11 Replies View Related

Delete User Information In System.mdw File?

Jun 15, 2006

Is it possible to delete user information in workgroup information (System.mdw) file from command line or programmatically?

Thanks

View 1 Replies View Related

Networked Database, Basic User Login System

Jun 11, 2007

hi.. i have a database stored on my main computer. all pcs on the network have windows xp.the database is stored in a shared folder.. and at the moment.. everyone on the network can open the database.. but not at the same time..basically if i have the database open.. my colleague on the pc next to me has to wait till i close it.so what i am asking is can someone direct me to a simple tutorial or some reading material..that introduces the methods needed to allow multiple pcs to access a single database with or without a login system.i imagine there will be certain read/write and locking issues.. but i really need it.thanks.

View 9 Replies View Related

Access 2007 Crashes On Excel 2007 Import

Mar 21, 2008

On trying to import an Excel 2007 file into Access 2007 I get the following:

1) Choose "External Data," Import, Exce
2) Select small file in MS Excel 2007 format.
3) Click on Import the source data into a new table ...
4) Choose OK

Immediately get "Microsoft Office Access has stopped working. Windows is checking for a solution to the problem..." This message never resolves, so I have to click 'Cancel'.

Then I get "Microsoft Office Access is trying to recover your information..." I have to click "Cancel" here as well and then kill MS Access in Task Manager.

Event Viewer gives following message, which is of no help:
"ID: 2, Application Name: Microsoft Office Access, Application Version: 12.0.6211.1000, Microsoft Office Version: 12.0.6215.1000. This session lasted 710 seconds with 120 seconds of active time. This session ended with a crash."

Trying to import a small Excel 2003 file leads the same result. The same happens with a CSV file.

I have uninstalled and reinstalled Office 2007 as well. I am using Vista Ultimate.

I have turned off DEP.

How can I get MS Access 2007 to import Excel?

Thanks

Ken

View 6 Replies View Related

Access 2007 Runtime Not Visible In Access 2007

Nov 26, 2007

I installed Office Enterprise 2007. Then I installed DEveloper Exrtensions, then Access Runtime 2007. All appear to have installed OK - they appear in Program and Features.
Instructions on runtime packaging tell me that a Developer option should appear in the resulting drop-down when I click the Office button (top-left round thing) when I have a d/b open in Access. It's not there! I have un-installed and re-installed the extensions and the runtime - still nothing!
Help!
I do have Runtime 2002 (XP) on the same PC, is that relevant?

View 10 Replies View Related

Tables :: Primary Web Based Inventory System - Update Raw Data From Another System

Mar 13, 2014

I have our primary web based inventory system that I am exporting to Excel and using this as an import to Access for the main raw data for my database. This being inventory it changes daily so I am updating this table every day. When I try to append the table it ads all the records. I am wanting an easy way to add only the new records/take out the ones that are no longer there. Basically update the table with what is currently there.The only have I have found to do this is by running non-matching queries and update queries.

View 2 Replies View Related

Several Questions For A Newbe Access Guy

Aug 22, 2006

I'd like to first thank you for any help you can offer on any of the following issues.

Situation: I've been tasked to streamline our in-processing requirements for new employees and told that the Access program can help tremendously. In order for this program to work I need to make it as easy to use as possible for some of my more computer illiterate bosses.

Tasker: Design a one-stop-shop program that is in-depth and both easy to input data and easy to show multiple outputs if we want. For example: If Jon Doe is coming into our business then I might need his prior work experience, social security number, date of birth, name, address, phone number, supervisor name etc. I know how to do some of this but I don’t know how to:

1. Make a drop down menu in a specific field to allow only the pre placed answers to work.

2. Allow a supervisor to see a 90 day forecast of only the employees who will require an evaluation. (this would require an easy to navigate program that allows the supervisor to click on the desired output and time frame to see the info)

3. Make it a clean and professional tool that will be relatively simple to maintain for future employees.

Thank you again for any help or reference material you can offer. Have a great day.

AFEric

View 3 Replies View Related

Microsoft Access Startup/Pop-up Questions

Jul 27, 2006

I have a database that will be used by a few users who are not very comfortable with Microsoft Access. I have a login screen and a introduction/splash popup. I was wondering if it is possible to bypass the Microsoft Access pop-ups that ask the user if they want to "block unsafe code.." or The security popup that says "This file may not be safe" so that the users go right to the login screen I created within the database. I am worried that there will be variations in answering/clicking these Microsoft Access questions thus causing a variety of complaints when trying to access the database. Thank you

View 1 Replies View Related

Couple Of Newbie Access Questions

Jul 14, 2006

Okay, I have two questions.

First, if I have a table, and I want to combine two records together, how would I accomplish this? For example, say I have the following table.


NAME SALES
Bill 2000
Jim 500
Ted 1000


And by some miracle of science, Bill and Jim are able to fuse together to become Jill, combining their sales together. So the new table would look ilke this.


NAME SALES
Jill 2500
Ted 1000


My second question is, say I have an extended list of the same table with 30 names and corresponding sales. However, I want to find out Ted's percentage of sales of the TOP 15, not all 30. How can I accomplish this?

Thanks so much in advance for helping out a complete newbie. :)

View 9 Replies View Related

My First Access Database, A Couple Of Questions

Mar 9, 2006

Hi all,
I've played a bit with MS Access 2003 the last week. I've made a form wich should contain information about stores (phone numbers, locations e.g.).

I'm trying to imagine myself (what could be a real) scenario, that way it's easier to give myself practice and tasks :)

As I'm new to MS Access, I'd like you to take a look at my forms. I want to know if there's better ways to do what I have done, and if I have done something wrong.


I also got a couple of questions;
Lets say I want to print one post by clicking on a button, is that hard to implement?
Is it possible to make a button, which exports the form to an .xls -file by clicking on it?
I did make these forms on a computer that had the resolution to 1280/1024, when I tried to open the form on a computer with 1024/768 resolution, the forms won't be displayed in the center of the screen :confused:

I think that's all.. Thanks! :)

Here's the access -file (http://www.home.no/f00b/stores.rar) (180kB) (use winrar to extract it)
I've tried to transalate to forms into english, sorry for the bad english :o

View 2 Replies View Related

Getting Into An Access System

Jun 12, 2007

Someone, who is no longer working at out organisation, created a system in Access which we are trying to get into, however the creater put on some security which will not let us open the system to alter. Is there a way of getting into this?

View 11 Replies View Related

Access Quiz System

Jul 29, 2005

hi
i am trying to make a quiz system using ms access
i want to select 30 questions randomly from a questionbak of 100 or more
also i need to select 3 answers randomly including the corect answer
from answer bank that has 5 possible answers for each question

tblquestionbank
QID Question
1 Question1
2 Question2
3 Question3

tblanswerbank
AID QID ANSWER CORRECT
1 1 Q1 answer a true
2 1 Q1 answer b false
3 1 Q1 answer c false
4 1 Q1 answer d false
5 1 Q1 answer e false

the field correct is for identifying the correct answer yes/no filed

so far i have been able to get the questions randomly
that is generating a random number in the query and selecting
top 30 records

ideas and help would be appreciated

View 1 Replies View Related

General :: Access Multi User Database - Error On Only One User

Apr 24, 2013

I have a multi user database in Access 2000 that is on a server. The individual users have shortcuts pointing towards the server instance. One user and one user only when opening the shortcut gets the error "you do not have exclusive rights to the database" .

All other users can enter the database with no error box. I have checked the advanced setting under options and they are correct. Ironically if you go to start and open access then navigate to the database shortcut. It opens with no error.

View 1 Replies View Related

Implement Barcode System With Access

Feb 1, 2006

Sorry for the flashy post.

1.st Job:
I have an access 2003 db. I want to implement barcode system to the DB in which I can print barcodes in any kind of barcode printer and also when imputing an order read data from barcode scanner etc.

2nd Job:
I want to put access db to a server so I can view reports, forms, imput data and retrive data from internet explorer window (with a password).

I will give my DB to you so you can work on it. Please do the pricing seperate for each job.

Please PM or Reply if you have more than 500 posts. PLEASE RESPOND IF YOU REALLY KNOW HOW TO DO IT.

Thanks in advance.

View 3 Replies View Related

Access 2003 Using System DSN Problem

Jun 20, 2007

I have a system DSN, pervasive ODBC engine interface. In Access 2003 I can link to the DSN but can only link to some of the files. This started when I changed to a new computer. Before, I had a link to the same database using Access 2002 with no problems.

Any help will be greatly appreciated.

Brad

View 8 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved