Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help!! Overiding ByPass Key 2

Status
Not open for further replies.

zevw

MIS
Jul 3, 2001
697
US
Code:
Dim db As Database
Dim prp As Property

    Set db = CurrentDb
    Set prp = db.CreateProperty("AllowByPassKey", dbBoolean, False)
    db.Properties.Append prp

HELP ME HELP ME PLEASE PLEASE!!

I disabled the bypass (Shift) key and set a password that only I know, that will reactivate the bypass key again. It does not work. Now I"m in hot water (This is 4 months of work) I am getting an error and cannot open my program (the code). I cannot import a module or new form because Visual Basic is locked and can only be opened once the bybass key is activated.

Is there anything I can do, for example writing code in a macro like this
Code:
Currentdb.Properties.Delete "AllowByPassKey"
Currentdb.Properties.Refresh
and exporting into the program or any idea how I can go about this.

Please I am literally in tears.

Thanks in advance
 
In a brand new database execute the following code:
Set Bdd = DBEngine.Workspaces(0).OpenDatabase("\path\to\yourdb.mdb")
Bdd.Properties("AllowBypassKey") = True

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
I cannot thank you enough, you should be blessed in every way possible.

I was literally freaking out.

Thank You so much, and thanks for all your help of the past to.
 
Does any one know how to do this for an adp project?

I tried to use this code and it says it does not recognize the format on this line.

Set Bdd = DBEngine.Workspaces(0).OpenDatabase("\path\to\yourdb.mdb")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top