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!

When a startup Form is enabled then the breakpoints don't work

Status
Not open for further replies.

lazaridisaris

Programmer
May 3, 2006
26
GR
I have an Access DB that when I startup th Project without pressing the shift key then the Break into code does not work.

My quest is to disable the bypasskey property so users will not be able to see what I dont want them to see.


I have created a logon form from which I give access rights to users and if an administrator logs on then it has full access to things but in the code execution (debuging) I cant break into anything.

I have these statements in my code
AllowPropertyOrNot "StartupShowDBWindow", True
AllowPropertyOrNot "AllowToolbarChanges", True
AllowPropertyOrNot "StartUpShowStatusBar", True
AllowPropertyOrNot "AllowSpecialKeys", True
AllowPropertyOrNot "AllowBreakIntoCode", True
AllowPropertyOrNot "AllowBuiltinToolbars", True
AllowPropertyOrNot "AllowFullMenus", True
AllowPropertyOrNot "AllowBypassKey", False
AllowPropertyOrNot "AllowBuiltInToolbars", True

when the administrator is loged on

and set all to false when a simple user logs on.


The only way to debug my project is to set the "AllowBypassKey" to true and reopen the DB with the shift key pressed.


Any suggestions will be appreciated.

Thanks in Advance.


 
I found in forum that only if the allowbypasskey is enabled then you can debug the code is that right?

Thanks
 
APH,

if you enable the bypasskey property this takes effect on the next user to open the database. This goes also for when you disable the bypasskey property. And thats what I do.

KALHMEPA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top