Page 2 of 2 FirstFirst 12
Results 16 to 26 of 26
  1. #16
    Mclaren is offline Competent Performer
    Windows 7 Access 2007
    Join Date
    Feb 2010
    Location
    Johannesburg
    Posts
    164
    Is there any way to record the number of attempts made by any person in database by inserting a column in the main table or otherwise as well.
    yes there are, i use two options depending upon the requirements of the person i am making thed DB for.

    1: count the number o attempts with in the login screen, each failed attempt adds 1 to the running total : eg, define a value lets say : intLoginAttemptCount and then on each fail you will have intLoginAttemptCount = intLoginAttemptCount + 1

    then if the max number is reached i.e.
    if intLoginAttemptCount = 3 then
    docmd.quit
    end if

    2: set up a column in your users table for the count. Use an update query(i think, or maybe an append qurery, can't remember right now) to change the value held in the tale for a given user for each attempt made. This way you can be sure that even if the user closes the database, the number of attempts is stored and further attempts to restart and try another 3 times will not be an issue.


    the value can always be set to 0 once the user makes a valid attempt.

  2. #17
    amangupts is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jul 2011
    Posts
    43
    Thanks a lot for your reply. Can you help in building the query. As to what I need to write in the Query.

    I believe this Part is already in the Code mentioned by me: 1: count the number o attempts with in the login screen, each failed attempt adds 1 to the running total : eg, define a value lets say : intLoginAttemptCount and then on each fail you will have intLoginAttemptCount = intLoginAttemptCount + 1

    then if the max number is reached i.e.
    if intLoginAttemptCount = 3 then
    docmd.quit
    end if

    Please help me with the issue.

    Thanks
    Aman

  3. #18
    Mclaren is offline Competent Performer
    Windows 7 Access 2007
    Join Date
    Feb 2010
    Location
    Johannesburg
    Posts
    164
    I modified that code, will send what i got later on tonite. i am also busy reworking it so that the userrname box isn't a combo box.

    why ?....well.....I don't want potential miscreants to have a head start in knowing a user name. I have also given my users an option to choose a "nick name" of their own as a login, so peter could use a nick like "Michelle". this limits miscreants from picking up that A: peter is a user, and B: trying out various words they think peter may use.

  4. #19
    amangupts is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jul 2011
    Posts
    43

    Thumbs up

    Even "AWESOME" is a smaller word for the concept ur working on. Thanks a lot. It would be a wonderful value ADD to the security feature.

  5. #20
    Mclaren is offline Competent Performer
    Windows 7 Access 2007
    Join Date
    Feb 2010
    Location
    Johannesburg
    Posts
    164
    i just posted a 2010 db with a log in screen using text boxes in the "programming section" under "runtime error 2110", download it and check it out. i think it will run on 2007. (it does not have the count attepts feature though)

  6. #21
    amangupts is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jul 2011
    Posts
    43
    Its not opening with 2007. Can you please check as to whether it can be converted to 2007.

  7. #22
    Mclaren is offline Competent Performer
    Windows 7 Access 2007
    Join Date
    Feb 2010
    Location
    Johannesburg
    Posts
    164
    Ok, give me a few days, i will organise it in 2007

  8. #23
    Mclaren is offline Competent Performer
    Windows 7 Access 2007
    Join Date
    Feb 2010
    Location
    Johannesburg
    Posts
    164
    Okay, i have a 2003 version which is pretty much working, you can open this in 2007:

    This version uses text boxes for both user name and password, and stores the number of attempts tried for valid users. if the person trying to access the db uses any other name that is not stored, then the database doesn't store the attempts, but closes after 5 attempts (this value can be set in the properties table)

    I may add to this example an option where if the user does not exist then the current user of the machine is stored and any attempt to try again from that particular machine will be prevented.

    email me and i will send you a copy. its just over the upload size limit for this website.

  9. #24
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    If you Compact and Repair and then ZIP the db, the size is 2MB's which should be enough I would think.

  10. #25
    Mclaren is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2010
    Location
    Johannesburg
    Posts
    164
    zipping....

  11. #26
    Mclaren is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2010
    Location
    Johannesburg
    Posts
    164
    zipped and uploaded.

    I am sure this can be cleaned up a bit by the experts. but it works for me.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Login Form Code
    By paddon in forum Programming
    Replies: 4
    Last Post: 04-08-2011, 06:48 PM
  2. Replies: 1
    Last Post: 12-02-2010, 11:08 PM
  3. VB Code in Access 2007
    By collen in forum Programming
    Replies: 1
    Last Post: 10-12-2010, 06:27 AM
  4. Login/Password Code not working
    By eww in forum Programming
    Replies: 3
    Last Post: 09-21-2010, 10:49 AM
  5. Access 2003 code vs Access 2007 Code
    By ralphjramirez in forum Access
    Replies: 5
    Last Post: 11-23-2009, 12:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums