473,379 Members | 1,530 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,379 software developers and data experts.

How to count the login attempts?

I have a login form in my access database that is working perfectly. I would like to count how many times the command button is clicked so I can do things such as close the program aftr so many failed attempts, etc.

Can anyone tell me how to make this happen? How do I count the number of times a button us clicked?

Thank you.
Jan 29 '11 #1
3 6554
TheSmileyCoder
2,322 Expert Mod 2GB
There are several ways to count it. You can count it in a hidden field on the form, you can count it as a form level variable, or you can count/store it in a table.

Simply closing the program after X attempts is not in itself enough, since the user can just reopen the program. So if you want to prevent him from trying more then X times per day, you could store the amount of attempts he has tried, each day (You can record the username used to login to the computer, and the day).

However, in my honest opinion you should consider if this is really necessary, and if you really believe it is, you should consider whether access as a database is secure enough for you.

That said, if you wish to proceed with recording user attempts, I would be happy to guide you through the coding process.
Jan 29 '11 #2
ADezii
8,834 Expert 8TB
This would be the general idea, with the Code being placed in the Click() Event of a Command button:
Expand|Select|Wrap|Line Numbers
  1. Static intNumOfButClks As Integer
  2.  
  3. intNumOfButClks = intNumOfButClks + 1
  4.  
  5. MsgBox "This Button has been clicked " & intNumOfButClks & " time(s)"
  6.  
  7. If intNumOfButClks = 10 Then intNumOfButClks = 0        'MAXIMUM number of Clicks, RESET
Jan 29 '11 #3
Thanks, Smiley, here's where I'm at. I don't need this database to be super secure at this point. I'm mostly trying to protect it from lazy or curious users. I'm not worried too much about malicious attacks. It's internal only.

I would like to be notified eventually when someone tried to log into the database more than five times. The first step in this is being able to count the attempts. Eventually, I'd like it to email mecif possible. But anyway, I was thinking it had to be dimple with a hidden field on the form. If you could help me with this, I'd appreciate it a lot.

Thanks.
Jan 29 '11 #4

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

Similar topics

0
by: Shor Erez | last post by:
Hi, I have an ASP application using Forms authentication. On my development web server everything works and login is successful, but when I move my application to the production server the login...
1
by: tchangmian | last post by:
Hi all, If the user had log in with correct user id but wrong password, i would like to capture the time when the user fail to login for the 1st time. Within 24 hours, if the user had tried to...
0
by: kevincw01 | last post by:
There doesnt seem to be a reliable support channel for libgmail so i figured this group might have some people who could help. I have the latest version(from cvs) of libgmail.py, lgconstants.py...
5
by: Matthew Louden | last post by:
I wrote ASP.NET application that access SQL Server database. When I run the application, it yields "Login failed for user '<COMPUTER_NAME>\ASPNET'" error message. I then did the following, but...
10
by: Pete | last post by:
I have used Visual Studio 2005 to create a website. I set up standard login page using standard procedures. Nothing fancy or out of the ordinary, just standard procedures described in any "Login...
18
by: icesh | last post by:
hi i'm a newbie in php.. can you help me how to make several login attempt in php? (if we put wrong password/username,, we will go back to the previous form and we can try 3 more attempts to input...
1
by: cactuscrust | last post by:
I'm running IIS6 Windows2003, and as you'll see very quickly.. I'm pretty new to this stuff. Lately I've been getting bombarded with login attempts.... sometimes several in the same second, and it...
1
by: dharmbhav | last post by:
Hi, I am designing a login mechanism for a website. Presently, I am blocking the user account for 1 hour if there are 3 failed login attempts with-in 1 hour. However, I want to know if there is...
3
DjPal
by: DjPal | last post by:
I am trying to parse through a log file to obtain the IP addresses with >5 failed login attempts, firstly I'm trying to get the IP addresses but there seems to be something wrong with the regular...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.