|
-
Aug 4th, 2000, 12:05 PM
#1
Thread Starter
Junior Member
How would I create a password program for a form in Access?
Basically, when someone clicks on a button, I want the password prog to run, then when they've been authenticated it goes to the form.
Thanks.
-
Aug 4th, 2000, 12:39 PM
#2
Frenzied Member
What password prog? If the database is password protected, you will be asked to provide it when you atempt to open the database. Same goes for useid's and passwords if you've assigned a password to admin.
-
Aug 4th, 2000, 01:19 PM
#3
Thread Starter
Junior Member
You misunderstood...I want the password thing to be internal...ie: you click on a button in the form, the password thing comes up asking for the password to access the next form.
-
Aug 4th, 2000, 02:11 PM
#4
Frenzied Member
What you'll want to do is create a table that has form name and password in it, then create a form that reads that table and hides the password value (as well as providing a text field for the user to enter a password in). You then compare the hidden field with the text field before proceeding...
-
Aug 5th, 2000, 08:47 AM
#5
Lively Member
Try this...
Private Sub Command1_Click()
On Error Goto Err_OpenForm
Dim Mypwd As String
Mypwd=Inputbox("Enter Your Password")
If Mypwd<> "YourPassword" Then
Exit Sub
Else
Docmd.OpenForm, "FormName"
Endif
Exit_OpenForm:
Exit Sub
Err_OpenForm:
Msgbox Err.Number & " ; " & Err.Description
Resume Exit_OpenForm
End Sub
-
Aug 5th, 2000, 09:43 AM
#6
Monday Morning Lunatic
If you encrypt the password before placing it into the DB with a one-way method such as MD5, then to check it, encrypt the password they gave, and check the two encrypted versions. Since it is very difficult to get at the password from the encrypted version, it is much more secure.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|