Password On A Form

Feb 17, 2005

I would like to create a password on a form, but I cannot get the form
to close when the wrong password is entered. I have also tried
docmd.close.
Appreciate some help.

Private Sub Form_Current()
Dim Password, Pword
Password = "Swordfish"
Pword = InputBox("Type in your password")
If Pword <> Password Then
MsgBox "Sorry, incorrect password"
exit
End If

End Sub

View Replies


ADVERTISEMENT

Not Prompted For Password When Relinking - 'Not A Valid Password Message'

Mar 29, 2007

I have recently split my database and added a password to the back end. I am now trying to re-link the tables as I have seen in other threads, but when I do this I am not prompted for the password I just get the message 'Not a valid password'

I must obviously be doing something wrong, can anyone help?

View 4 Replies View Related

Password Issues With Non Protected Database Asking For Password

Nov 8, 2005

Hi,

Firstly thank you for your help, this should be a simple one I hope, but is cracking my head on the wall. Have searched and searched and can't find an answer.

I have an Access Db that is not password protected, but is asking for a password.
It opens on any other machine fine?

I think my version of Access is playing funny buggers with me, any suggestions?

I was trying to implement some security on this Db, which is why it happened I'm sure. I ran the security wizard, set-up two users and admin with passwords, I have the output file to "recreate" something too.

Issue is, I then copied this Db to another computer for use on there, it worked without a Password, so didn't need to worry about it, now I can't open any Db on my machine??

Your help on this obvious pointer would be great!

C

View 3 Replies View Related

How To Crack Ms Access Password, I Have Set User Name And Password

Sep 12, 2006

hi pals

i have set username and password for ms access file.

unfortunately i have forget that password?

how to crack that username and passowrd?

is there any softwares available?

i can easily crack the database pasword? but how to crack username and password of ms access file.

View 1 Replies View Related

Forms :: Password Protecting Field With Password?

Oct 24, 2014

i have found a code that brings up a box when tab or clicking in to a box for editing as below:-

Dim strPassword As String
If InputBox("Please enter the password:") <> strPassword Then
SomeOtherControl.SetFocus
TextBox1.Locked = True
End If

its just that need to add a password as well, i have tried to put this in between the <> but this does not work. i would like a message to say incorrect password as well if possable.

View 4 Replies View Related

Password Form In VBA Help!

Sep 23, 2006

Im trying to make a form that allows a 2 passwords. If the first password is put into the textbox then form1 is shown and if password 2 is used instead, then form2 is shown. Can someone point me in the right direction? I can only make a form that shows 1 form and exit the database

View 3 Replies View Related

Password Protecting A Form

Aug 30, 2005

Hi

I've got a button on a form that opens another form - nothing unusual, but it would be preferable if this second form was password protected i.e. the user clicks the button to open the form and is immediately prompted to enter a password. I've looked at user-level security wizards but that confused me even more.

The database is networked and is used by 25+ people by the way.

Any ideas?

Thanks for any help!

View 2 Replies View Related

Password Protect A Form?

Aug 28, 2007

Hi

i am wondering if it is possible to password protect a form?

I am building a DB which will hold personal information, all this info will be held in a table and displayed on a form, but I would like it so that the user has to enter their user name and password and only the form which relates to their details opens ( so like an open form and display specific field but passworded)

Any ideas?

View 3 Replies View Related

Password Protect A Form

Jan 25, 2005

Is there a way to password protect a form.

This is due to me having to send a mdb file, because i use A97 and the other end use A2000.

I tried sending the mde file but they could not convert it etc.

But i want to stop them getting into the code, you know how protective we are.

I want to hard code the password if thats any help.

Could some one please help me, thanks

View 4 Replies View Related

Password Protect A Form

Feb 11, 2005

How can i simply prompt the user for a password when they click a button, if the password does not match the form will not open?

View 1 Replies View Related

Password Request On Form?

Apr 14, 2005

i have a curious and annoying problem :eek:

I have a Access 2000 db, been working fine for 6 months+ and suddenly today, two out of three forms give "not a valid password" error on trying to open them.

There has never been a password set on the db, nor on the forms - and the same user who used it successfully yesterday now gets this error, along with any other users.

What has happened and how do i fix it? All ideas welcome!!

Sham :confused:

View 5 Replies View Related

Password To Close Form?

Feb 1, 2006

how do I make a form closure password protected? basically a customer will be using a a form to browse products and the only way to have access to the rest of the DB is to enter the correct password to close that form when a close command button is clicked (more security features protecting rest of DB) how do I go about this? or is there a better way? explanation of any code will be very much appreciated! thanks :)

View 4 Replies View Related

Simple Password Form

Mar 5, 2006

Private Sub btnConfirm_Click()
On Error Resume Next
DoCmd.Close acForm, Me.Name
End Sub

Private Sub Form_Unload(Cancel As Integer)
Dim password As String

password = "closeme"

If enterpassword <> password Then
Cancel = -1
MsgBox "Incorrect password!", vbExclamation
End If
End Sub


It works except if I press the confirm button with no text entered into the box it'll act as if the password is correct, wheres the simple error?

View 6 Replies View Related

Password Protected Form

Aug 17, 2006

Hi all

I want to use a password for just a form and a report not all the database
if any one have example please help

Baig

View 1 Replies View Related

Password Protected Form

Nov 8, 2006

Hello All,

I have found the following code to password protect my form, it works but I have one problem, the input txt box does not have the input mask set so the password can be seen on screen, here is the code I have:

Private Sub Maintenance_Button_Click()
Dim strPasswd

strPasswd = InputBox("Enter Password", "Restricted Form")

'Check to see if there is any entry made to input box, or if
'cancel button is pressed. If no entry made then exit sub.

If strPasswd = "" Or strPasswd = Empty Then
MsgBox "No Input Provided", vbInformation, "Required Data"
Exit Sub
End If

'If correct password is entered open Employees form
'If incorrect password entered give message and exit sub

If strPasswd = "ssd" Then
DoCmd.OpenForm "Maintenance", acNormal
DoCmd.Close acForm, "Menu", acSaveNo
Else
MsgBox "Sorry, you do not have access to this form", _
vbOKOnly, "Important Information"
Exit Sub
End If


End Sub


Can anyone advise on what vba cmd to use in the password string to enable the password input mask?

Regards

View 2 Replies View Related

Password To Open Form

Oct 22, 2004

Hello... Does anybody have any Visual Basic code on creating a password to open a form and a report.
The form name is called "frmSurvey" and survey is called "rptSurvey"

Thanks a bunch!
Diana

View 1 Replies View Related

Password Form For Multiple Users

Jun 9, 2007

I am not sure how to do this. I am trying to do up a password form where there is a user name and a password. There will only be 5 user names, one being an admin. I seen it in the Running Microsoft Access 2000 book (it's just a reference manual) but could not figure it out.

View 1 Replies View Related

Setting A Password Up Before Opening A Form

Feb 7, 2005

Hi and Thank in Advance

Is there a way to set up a password when opening a certain form by clicking a button? Thanks

View 1 Replies View Related

Startup Form Bypass Security Password

May 19, 2006

Hello,

I have a db that I want to password, so that anyone pressing either F11 or holding shift down at the start, will be prompted with a password.

.....But, I want the user to be able to see the start-up form and associated forms without having to enter a password.

Is this something that is possible to do in Access97?

I have searched the forum for an answer, but can't find anything.

Thanks, Steve.

View 4 Replies View Related

Forms :: Changing The Password In The Table From A Form

May 9, 2013

I have a login button in which if the username has an empty password or the user is his/her first time to login, another form will appear which is the Set New Password. How can I change the password of that current user, my Set New Password Form has two fields which is 'txtSetPassword1' and 'txtSetPassword2' and an OK button.

The user must enter a new password and a verification password, if the 2 fields matched, the new password entered will change the password in the table. The table name is 'tbl_UsernamesQry'.

I have done it but the main problem is, it changes the other's users password not the current user.

Here is my code for the OK button of that form Set New Password:

Private Sub btnSetOk_Click()
If Me.txtSetPassword1.Value = Me.txtSetPassword2.Value Then
Me.txtSetPassword1.SetFocus

[Code].....

View 11 Replies View Related

Modules & VBA :: Transferring A Form To Password Protected DB

Feb 10, 2014

I have a mdb file that does not have database or user level security, but it does have a VBA password.I want to transfer (overwrite) a new form to this database from another Access database. The form I'm exporting has VBA code. When I try using docmd.TransferDatabase I get an error. The error is:

"The TransferDatabase action was canceled."The line is:

DoCmd.TransferDatabase acExport, "Microsoft Access", txtCheckInFile, acForm, "SubformLineSummaryContractor", "SubformLineSummaryContractor", False, False

where txtCheckInFile is the location and mdb file name I'm trying to send the export.It might be because the form already exists. So, if I go into the database and delete form, and repeat the export I get the message:

"Microsoft protect this Visual Basic for Applications Project with a password. You must supply the password in the Visual Basic Editor before you can perform this operation."My question is it possible to transfer a form to a MDB that has a passworded VBA? I know the VBA password.If not, perhaps it is possible to remove the VBA password in the database (using VBA), make my export, and then add the password back in?

View 2 Replies View Related

Login Form With Network User And Password?

Nov 27, 2014

Into the form named: Administratorsfrm, I added a textbox defined as usertxt and also a textbox named passwordtxt as well as a button named logincmd.

The user defined is the Network user and this is added automatically to the usertxt field everytime when I open the Administratorsfrm form. To do this I use the next code:

Private Sub Form_Open(Cancel As Integer)
Dim wshNetwork As Object 'New wshNetwork
Set wshNetwork = CreateObject("WScript.Network")
Me.Usertxt = wshNetwork.UserName
Set wshNetwork = Nothing
End Sub

I would like that the user types his/her password (Network password or Unlocking computer) and after this could Login to the database application. I mean, the user will type his password and then the event should compare the password typed with the network password or unlocking password and if this is correct should open the database application (Main Menu Form: Mainfrm)

View 4 Replies View Related

Login Username Password Open Form Based On Id

Sep 13, 2006

Hi Freinds,

After viewing all the threads i got some useful information but just wanted some help as i am not a programmer but can understand logics. There are 2 issues i want to resolve

1. First query is i have a login form and in a table there is username password. Now issue is based on the username person should be able to view things. There would be 6 differrent departments. So i would have six users and 1 id only for viewing. These six users should be able to see there own records either assigned to them or create new query and assign to any other 5 users. Now option is either I create six replicated forms and based on the user login i open user form or switch board. Can there be any option where in a table i store the activities they can do and whereever these guys go the code check in table and enable or disable the view of items for other guys. Users would be accessing forms, reports and they would have option of entering cusotmer information and querying and changing information. The user which has option of viewing reports will only have option of seeing some customized reports.

2. Second query is that these six users would be addressing issues to each other regarding cusotmer issue. In this every response of the case should be stored in a table. i.e. like for customer x user1 said abc on 10th then user2 said cbf on 11th. so this would have history of case what was happeining in the matter.

I dont know how to go about this and if there is a easy solution. I dont want to use access security cause then all the six users would have security file.

Would apreciate your help and till now whatever responses i have seen in other forms they were quite helpful and did help me lot in understanding access.

Thanks to all who would be visiting this thread and taking pain in answering the query.

Take care
Ankur

View 3 Replies View Related

Password Protecting A Form - Microsoft Tutorial Error

Jul 22, 2005

I was using this form tutorial to password protect my administrative tools. When I went to run it I received this:

"User defined type not defined" and the line Dim rs As DAO.Recordset was highlighted.

I have little experience with VB and I was wondering if someone here had any idea if it was their code that was wrong, or if it was something I did...

View 7 Replies View Related

Put Password Protect On One Form From On Click Command From Mainform.

Nov 4, 2004

I'm new in access world. please help. I have many forms that control by On click command from the main form. One of the form (which is Calendar form), I like to have password protect in away that only the right ID or password would have access to edit this Calendar, If not users can only view it. Is this possible?, if it is can you please provide some code for me...Thanks in advance..

View 1 Replies View Related

Forms :: Password Protected Form - Showing Asterisks

Jul 16, 2013

I have a password protected form that works fine. However, when you type in the password it can be seen on the screen. Is there a way I can change that so that when the password is typed in it can't be read (perhaps showing asterisks)?

This is what I'm using:

In ON CLICK event
Dim PassWord As String
PassWord = InputBox("Enter Password")
If PassWord = "MYPassword" Then
' Open Form
DoCmd.OpenForm "MYFormName"
DoCmd.GoToRecord , , acNewRec
Else
MsgBox ("You're not authorized")
End If

View 6 Replies View Related







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