Solved

Remembering login attempts

Posted on 1998-08-20
5
167 Views
Last Modified: 2010-04-30
How do I store login attempt dates and display them in a listbox?
0
Comment
Question by:JoKeRxSB
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month4 days, 10 hours left to enroll

636 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