Solved

Remembering login attempts

Posted on 1998-08-20
5
164 Views
Last Modified: 2010-04-30
How do I store login attempt dates and display them in a listbox?
0
Comment
Question by:JoKeRxSB
  • 3
5 Comments
 
LVL 1

Expert Comment

by:blwatkins
ID: 1430065
What are you trying to login to? (A network/ Program / etc?)

0
 
LVL 3

Accepted Solution

by:
MorFF earned 50 total points
ID: 1430066
Asuming it it login attempts to your own application.  As is the way with thse things, thate are a number of ways to skin this particular cat.

If you're already using a database within your application, you can create a little table to store login details (who and when), each login writes a record to the table.  Then you can use a query to return the info you want to your list box.

If you've not got a database, you can store the details in a data file, in a similar fashion to that above.  You can then read the file and populate your listbox from that.

Either way, depending on the level of security/confidentiality, you can encrypt the information in the db or file.

Cheers - MorFF
0
 

Author Comment

by:JoKeRxSB
ID: 1430067
OK i know how to read & write INI files but won't it overwrite everytime a new attempt is stored?  What other way to store info is there?
0
 
LVL 3

Expert Comment

by:MorFF
ID: 1430068
If you wanted to use an INI file.  You could gove it a new key based on the date&time, that wouldn't overwrite.

Cheers - MorFF
0
 
LVL 3

Expert Comment

by:MorFF
ID: 1430069
You could also use a normal 'WRITE' and 'READ' to a sequential file.  First time you open it, open it for output, then open it for 'APPEND' to stop you overwriting the entries.

Cheers - MorFF
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VBA: Personal Macro Retain/Highlight/Remove values in a selected column 4 30
Prevent user closing word document opened with VB6 6 74
MsgBox 4 61
Problem to With line 4 57
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question