Forms :: Login Form Time And Reset Count

Jul 1, 2014

I have a login form that closes automatically after a specified time if you do not login with user name and password. It also keeps track of how many times you login and whatever value you set for a password reset it forces you to change when that value is met.

Problem: If you do not login within the allotted time even though a password change has been scheduled, my code resets the login count back to 0.

This is what i want to get around if I can. Either I have to pause the timer or stop the reset.

After you enter the password is when the login count is fired.

And also when it checks if a new password is required.

View Replies


ADVERTISEMENT

General :: User Login Page Which Count Amount Of Time A Person Logs In

May 23, 2013

I have made a basic form and use it a log on screen. This requires the user to in put a user name and a password before gaining access to the main database.

The background to the form is a table where the users details are entered including the i enter the user name and password.

Is there any way to add a counter that is only visible in the table, so I can report on the different users.

View 14 Replies View Related

Forms :: Login Form On Opening Access Asking For Password And Login Name

Jun 17, 2013

I have access 2010, I currently have a database in place and operational. What I am wondering is there a way to have a form come up whenever someone opens access and asks for a password and login name. Also I would like to have a 2 tier system. One for Admins and the other for users with limited access.

Is this even possible to accomplish?

View 2 Replies View Related

Forms :: Last Login Time Stamp For Each User Logged In

Mar 19, 2014

Was trying to set the value of text to current date and time when a submit button is clicked. I've managed to set

Control Name:- txtLastLogin
Property:- Value
Value:- now()

The above expression works but the last logged data in tblEmployee gets replaced as another user logs in.

How can i add a time stamp to each user loged in.

View 2 Replies View Related

Login Form Help!!! Run-time Error: '2471'

Apr 13, 2006

Hi Guys,

I am trying to set up a login form in my DB. I have followed the instructions from some of the previous posts on this site.

I have a table called tblUsers with 'UserId', 'UserName' and 'Password' as the fields. I also have two text boxes 'txtUserName', 'txtPassword' and a 'cmdLogin' command button on my form with the following code:

Private Sub cmdLogin_Click()

If IsNull(Me.txtUserName) Or Me.txtUserName = "" Then
MsgBox "You must enter a User Name.", vbOKOnly, "Required Data"
Me.txtUserName.SetFocus
Exit Sub
End If

'Check to see if data is entered into the password box
If IsNull(Me.txtPassword) Or Me.txtPassword = "" Then
MsgBox "You must enter a Password.", vbOKOnly, "Required Data"
Me.txtPassword.SetFocus
Exit Sub
End If

If Me.txtPassword.Value = DLookup("Password", "tblUsers", "[UserID]=" & Me.txtUserName.Value) Then

DoCmd.Close acForm, "frmLogIn", acSaveNo
DoCmd.OpenForm "frmWorked"

Else
MsgBox "Password Invalid. Please Try Again", vbOKOnly, "Invalid Entry!"
Me.txtPassword.SetFocus
End If
End Sub

Unfortunately, this code is not working in my database (MS Access 2000). I think the error occurs on the line on which it checks the password against the stored password (If Me.txtPassword.Value = DLookup("Password", "tblUsers", "[UserID]=" & Me.txtUserName.Value) Then).

I get a Run-Time error'2471' message saying "The expression you entered as a query parameter produced this error: 'The object doesn't contain the Automation object for 'smith."
NB 'Smith' is the user name entered into the login form 'txtUserName' box.

Any idea why this may occur? I would be very grateful if you could let me know please.

Thanks alot for your time. And keep up the good work guys! :)

Kind regards,

Zaf

View 2 Replies View Related

General :: Reset Count If Date Is Not Current

Apr 2, 2013

What i am trying to do here is that if the date is not equal to current date, reset count or something to that effect.

Code:
(Select count(*) from [qry_01] where [id_employee] = a.[id_employee] and [datex]+[timex] <= a.[datex]+a.[timex])

View 1 Replies View Related

How To Reset Count Of Auto Number Fields After Testing

Dec 12, 2012

I would like to know, how do i reset the count of my auto number fields after testing? is it also possible to specify which number the auto number should start counting from?

View 3 Replies View Related

Login SQL Server Linked Tables Automatic On Event Load Of Login Form

Apr 17, 2015

I have a ms access application in Front End and linked tables to sql server 2008 r2 in back end.. every time I open my application the linked tables ask to me for the user and password of the sql server user of the odbc conection. I want to connect to my sql database without login every time the user open the application, I know that can be possible if I start session from vba code...

View 2 Replies View Related

Forms :: Continuous Form - Reset Button

Apr 18, 2013

I am creating a program to allows us to figure out where our personnel are. I am using a continuous Form that shows the individuals name, phone numbers etc. and infront of that is a checkbox, and a combobox that shows "Leave", "TDY", "Contacted" etc. I also have two fields that fill up with what time they were contacted or when they reported in. The default status is "Not Attempted and the checkbox is not checked, and the time fields are blank.

I attempted to use this code:

Dim ctl As Control
For Each ctl In Me.Controls
Select Case ctl.ControlType
Case acCheckBox
ctl.Value = False
Case acComboBox
ctl.Value = "Not Attempted"
End Select
Next ctl

but it will only clear the one line (it doesn't clear the times yet, i figure i'd add that once I figure out to clear one). This seems to work if this was a single form, but not for continuous. How can I convert this for continuous forms?

View 4 Replies View Related

Forms :: Cannot Reset Form And Show All Records Based On Expression

Nov 19, 2013

I have the below code to reset my subform after I have filtered it using some combo boxes. One of my fields in the underlying table had a calculated field so I'd get an error when clicking the reset button. I edited the query to update the 'type' field and deleted the calculated field in the table but now get another error. The exact error is 'Run-Time error '3327' Field 'Type' is based on an expression and cannot be edited.' It appears it will not reset my form and show all records as long as this field is based on an expression.

Code:
Private Sub cmdReset_Click()
'Purpose: Clear all the search boxes in the Form Header, and show all records again.
Dim ctl As Control
'Clear all the controls in the Form Header section.
For Each ctl In Me.Section(acHeader).Controls
Select Case ctl.ControlType

[Code] ....

View 6 Replies View Related

Forms :: Count Number Of Sales In Set Time Period

Oct 23, 2013

I have a pre-established database with a form that calculates total sales and tax for a time period i specify. I want to add a box that will display the number of sale records. Ex. if i had sales of 50,000.00, and that came from 200 sales i want the box to show the number 200.

View 1 Replies View Related

Forms :: Password Reset Form Doesn't Work In Runtime Access 2010

Feb 6, 2014

I created a small database with a user login form, along with a password reset form. Running it in my sandbox as an accdr file, the password value resets just fine, but on my test machine with the Access 2010 runtime installed, the password reset form doesn't reset the password. I will try to describe the state of things as of this point.

1. The LoginF presents with a combo box for the user to choose their name, and a text box to enter their password. The code below is on the After Update of the password text box.

Code:
Private Sub txtPassword_AfterUpdate()
'Check if user has been chosen
If IsNull(Me.cboUser) Then
MsgBox "Please Select User Initials", vbInformation, "Warning"

[Code] ....

2. The password reset form has two text boxes for the new password and to re-enter the same, as well as a command button with this code.

Code:
Private Sub cmdResetPassword_Click()
If Me.Password = Me.PasswordTest And Len(Me.Password) & "" > 0 Then
DoCmd.RunCommand acCmdSaveRecord
DoCmd.Close
DoCmd.OpenForm "LoginF"

[Code] ....

As I say, this works as an accdr file, but not in the actual runtime environment.

View 1 Replies View Related

Forms :: Login Form - How To Set Value For Textbox

Mar 18, 2014

i have a login form in access , i want to set the value for the textbox , for example i want to set "Username" appear in the textbox when in click in the textbox clear the textbox like the title in the web it is possible !!

View 4 Replies View Related

Modules & VBA :: Reset Autonumber Each Time Delete / Append Records In A Table?

Oct 25, 2013

I need to reset the autonumber each time I delete/append records in a table. Best way?

View 5 Replies View Related

Forms :: Any Way To Disable Hot Keys At Login Form

Nov 16, 2013

I have a fully functioning frmLogin that appears when the database opens. After correctly logging in, it takes you to the appropriate switchboard. The problem is that I set autokeys to allow F1 to automatically open the switchboard, but I don't want users to hit this to bypass my login screen. The reason for keeping the switchboard open is to force the user to close the database using the switchboard(eventually I want to limit the user to only the forms that I have created in a split database).

My other option that I tried first was writing a module that would detect when all forms are closed, then open the switchboard. But I kept getting Error91 and got frustrated/stopped attempting this method. Using the hotkey gives the user a similar functionality, but less conveniently so(since its not an automated process, etc.).

View 4 Replies View Related

Forms :: Linking Successful Login To A Form

Jan 3, 2015

i have created a login page and i have coded it but i do not know to set coding up so that it results in a linked form to open up..( main menu)

View 8 Replies View Related

Forms :: Open Specific Record In Form From Login

Aug 20, 2013

I have been trying for weeks to get my login form to open up to a specific record on the mainform. I have built a form out of my Employee tbl (mainform). The table stores (ID,Name, password, EmpNumber ect.) I built a subform in that allows the user to type in the number of overtime worked on a paticular day. I have disabled the navigation on the main form so users can't advance to the next user but have enable the natigation on the subform so a particular user can advance to the next week of available overtime to input data.The goal is to get user login form to display a particular record on the main form and open a different form in the user is a supervisor.

Option Compare Database
Private intLogonAttempts As Integer
Private Sub cmdExit_Click()
DoCmd.Quit
End Sub
Private Sub cmdLogin_Click()

[code]...

'If User Enters incorrect password 3 times database will shutdown

intLogonAttempts = intLogonAttempts + 1
If intLogonAttempts > 3 Then
MsgBox "You do not have access to this database. Please contact your system administrator.", vbCritical, "Restricted Access!"
Application.Quit
End If
End Sub

View 1 Replies View Related

Forms :: Username And Password For Database - Login Form?

Apr 8, 2014

I would like to implement a login form to my DB.

I have a table db-users with three fields: empID; empName; empPassword

I have a form with an unbound combo box: cmbdbUserName
And I have a text box: txtPassword where the user will type in their password.

cmdDBLogin is the button I want to add the VBA code to on click.

Code that will compare the inputs of the two objects listed above to the data in the table fields listed above that?

View 11 Replies View Related

Forms :: Multi-User Login Form With Macro

Nov 4, 2013

I've managed to create a multi-user login form with macro.

user1 is able to login with his password and user2 is able to login with his password. latter I noticed that user1 is able to login with any password in the table and use his previous password to login even after changing it.

View 14 Replies View Related

Forms :: User Login Form On Opening Of Database

Feb 17, 2015

I need to know the procedure or event code for user login form at opening.

I am working on database which is almost done and i defined tables for users with passwords.

I need to know how i can assign Login Form to be appear on opening of database no other person than listed users should be able to enter or open database without password, to enforce this i made a login form.

View 5 Replies View Related

Forms :: How To Use Form To Manage Multi-user Login

May 8, 2013

I am working on a db for a restaurant expense account. I am trying to design a multi-user login form to allow administrator and other users to log in the data entry form. I am a newbie to MS Access.

View 3 Replies View Related

Forms :: Coding User Login Form In ACCESS 2010

Apr 14, 2013

I have used Combo box. security_level field is the one that describes their levels and there are only two levels 1 and 2.. I have a table called User (user_ ID, User_Name, Password, Security_Level) On form there is a combo box for user name and text box for password. Two command button where one is for EXIT (Closing the application) and the second button is to run the code.

if the password in table User matches value chosen in combo box or user name and password are correct Then it should check if Security_Level of the user is equal to 1 to displays a form called Admin and when the Security_Level of the user is equal to 2 to display a form called user1.All that I want is to have a login that has two user and each user when login opens his/her own form which is different from the other user.

View 14 Replies View Related

Forms :: Login System That Assign Security Clearance - Form Not Found Error

Jun 24, 2013

I am relatively new to Access and VB. I am trying to create a log-in system that assigns a security clearance to each user and then restricts access to certain forms and reports based on security clearance. Right now, I have set up the log-in system - that seems to work fine. But when I try to lock the form based on security clearance, I get the 2450 - Form Not Found - error.

The code I am using on the form is as follows:

Private Sub Form_Open (Cancel As Integer)

If Forms!frmLogin!cboUser.Column(4) <> 1 Then
MsgBox "You do not have access to this form", vbOkOnly
DoCmd.Close acForm, "formname"
EndIf

End Sub

View 1 Replies View Related

Forms :: Not Able To Disable Navigation Button When Login Navigation Form

Nov 15, 2014

I am not able to disable NavigationButton when i login navigation form using login form. I am using MS access 2007 - 2010.i am using below code but getting error.

Forms![Navigation Form]!NavigationButton13.enable = False

Error
Run-time error '438'
Object doesn't support this property or method.

Any other method to disable NavigationButton.

View 2 Replies View Related

Forms :: Reset Combobox To Go Blank

Jul 1, 2015

I have a form based on a table with just sales quotes and dates. I am using the salesquote as a combo box to select corresponding records in a subform.

Code:
Private Sub cboSalesquote_AfterUpdate()
Me.Filter = "[salesquote]=" & cboSalesquote
Me.FilterOn = True
End Sub

Works fine. But not the mgr says his users get confused when they are making changes in the subform which record they are changing so they want when they select a record from the combo box and the records appear in the subform; they want the combo box to go blank. I am not sure how to do this because if I reset the combo box to go blank; the subform records will go blank as well.

View 5 Replies View Related

Forms :: Count If In Form

May 21, 2014

i have access table inculded 2 column , each column inculde 3 words(false, right, 5%).i have a form show this items in dropdown list and i want to

count false from the 2 column once thee user choose it from the dropdown list
count right from the 2 column once thee user choose it from the dropdown list

sum 5% from the 2 column once thee user choose it from the dropdown list.

View 6 Replies View Related







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