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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AllowBypassKey in an adp - is this possible? 1

Status
Not open for further replies.

LLou

MIS
Nov 5, 2002
2
AU
I am working on a MS Access Project (adp) in Access XP which links to a MS-SQL 2000 database. I have defined user rights through a combination of the adp form properties and the MS-SQL users and roles.

I would like to further protect the front end by disabling the Bypass key (holding down the shift key to bypass the startup) which allows any user with the know-how to access the Access object window. I have previously done this in an mdb using the standard AllowByPassKey vba function as defined in Help, but I am having difficulty creating a similar property for an Access Project (using the Add method of the AccessObjectProperties of the CurrentProject).

Can anyone offer any suggestions on this? Any help is much appreciated!

Thanks

 
This works for me on Access 2000 ADPs:
Code:
On Error Resume Next
CurrentProject.Properties.Add "AllowBypassKey", False
VBSlammer
redinvader3walking.gif

Unemployed in Houston, Texas
 
Thanks for that VBSlammer! It worked in Access XP just perfectly.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top