Results 1 to 8 of 8
  1. #1
    bigot is offline Advanced...ish
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2014
    Posts
    37

    Unhappy Locked Out Of VBA

    I am 100% to blame for this, I'm hoping one of you can bail me out.



    I recently became aware that the "Shift" bypass thing works on .accde as well (initially, I thought it was just an .accdb thing, and .accde automatically locked people out). In an attempt to disable it, I came across this article. So I script-kiddied those two functions and ran ap_disableShift... then I closed and reopened the database.

    Now I'm locked out of my own VBA ("Use Access Special Keys" is disabled). I can't edit any forms or figure out any way to run the code to re-enable the bypass key.

    Oh, and I am so smart that I did not make any back ups...

    Any ideas/suggestions?

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    I am going to send you a PM.

  3. #3
    bigot is offline Advanced...ish
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2014
    Posts
    37
    Thank you ItsMe, you saved my butt, +rep.

    Out of curiosity, is there a reason you didn't post that code publicly (too dangerous)?

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    As you can see, it is nothing special. I believe lazy people are more apt to wreak havoc on others. So I chose not to make it easy for lazy people.

  5. #5
    HiTechCoach's Avatar
    HiTechCoach is offline MS MVP - Access Expert
    Windows 8 Access 2013
    Join Date
    Jul 2010
    Location
    Oklahoma, USA
    Posts
    705
    Quote Originally Posted by bigot View Post
    I am 100% to blame for this, I'm hoping one of you can bail me out.

    I recently became aware that the "Shift" bypass thing works on .accde as well (initially, I thought it was just an .accdb thing, and .accde automatically locked people out). In an attempt to disable it, I came across this article. So I script-kiddied those two functions and ran ap_disableShift... then I closed and reopened the database.

    Now I'm locked out of my own VBA ("Use Access Special Keys" is disabled). I can't edit any forms or figure out any way to run the code to re-enable the bypass key.

    Oh, and I am so smart that I did not make any back ups...

    Any ideas/suggestions?
    TIP: Only disable the shift-bypass on the front end after is is compiled into a mde or accde and ready to deploy. Never on you master copy.
    Boyd Trimmell aka Hitechcoach
    Database Architect and Problem Solver
    Microsoft MVP - Access Expert
    25+ years specializing in Accounting, Inventory, and CRM systems
    "If technology doesn't work for people, then it doesn't work."

  6. #6
    bigot is offline Advanced...ish
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2014
    Posts
    37
    Quote Originally Posted by HiTechCoach View Post
    TIP: Only disable the shift-bypass on the front end after is is compiled into a mde or accde and ready to deploy. Never on you master copy.
    Very good advice. I re-wrote it so it auto-disables only on .accde types!

  7. #7
    HiTechCoach's Avatar
    HiTechCoach is offline MS MVP - Access Expert
    Windows 8 Access 2013
    Join Date
    Jul 2010
    Location
    Oklahoma, USA
    Posts
    705
    Quote Originally Posted by bigot View Post
    Very good advice. I re-wrote it so it auto-disables only on .accde types!
    Great minds think alike. That is exactly what I do. I have the startup code check for a compiled database and lock it down every time. Before deploying I open it once to "lock'er down".
    Boyd Trimmell aka Hitechcoach
    Database Architect and Problem Solver
    Microsoft MVP - Access Expert
    25+ years specializing in Accounting, Inventory, and CRM systems
    "If technology doesn't work for people, then it doesn't work."

  8. #8
    bigot is offline Advanced...ish
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2014
    Posts
    37
    Interestingly enough, I already had this code on the database. But I hadn't run the accde version without the bypass key.

    Lesson learned: if you're going to make accde proprietary code, make sure to open the database at least once without bypassing :P

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Could Not Update, Currently Locked
    By jlclark4 in forum Forms
    Replies: 5
    Last Post: 11-17-2011, 01:21 PM
  2. I've somehow locked myself out
    By Rapunzel in forum Security
    Replies: 2
    Last Post: 07-25-2011, 02:10 PM
  3. Locked for editing
    By Ted C in forum Security
    Replies: 19
    Last Post: 10-12-2010, 08:32 PM
  4. Database locked?
    By Oldhenwife in forum Access
    Replies: 1
    Last Post: 09-14-2010, 09:38 AM
  5. Replies: 0
    Last Post: 07-10-2010, 08:11 AM

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