473,399 Members | 3,106 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

AllowByPassKey error

RE: Access 2002

When my app starts up I am trying to set the F11 key to a disabled
state so users cannot press it to see the DBWindow.

Here is the error:
error msg: 3270-property not found

Here is the line of code the debugger stops at:
---CurrentDb.Properties("AllowBypassKey").Value = Enable---

Intellisense recognizes when I type "CurrentDB.properties", but how
come it would not allow a "allowbypasskey" to be used here?

I examined Tools/References and the ones I have listed for this app
that are checked are (and they're in this order):
1."Visual Basic for Applications"
2."Microsoft Access 10.0 Object Library"
3."OLE Automation"
4."Microsoft DAO 3.6 Object Library"
5."Microsoft ActiveX Data Objects 2.6 Library"
6."Microsoft Excel 10.0 Object Library"

With regard to "MyProblemApp.mdb" above, I have another older copy of
this same app "MyGoodApp.mdb" that uses the same exact code in the same
exact place, and the same 6 references are listed in the same order on
both apps.

If anyone has insights as to why "MyProblemApp" has this error and how
to correct it would be helpful.

Thank you.

Nov 13 '05 #1
1 2225
On 27 Jul 2005 08:05:34 -0700, "TechBoy" <ro******@msn.com> wrote:
RE: Access 2002

When my app starts up I am trying to set the F11 key to a disabled
state so users cannot press it to see the DBWindow.

Here is the error:
error msg: 3270-property not found

Here is the line of code the debugger stops at:
---CurrentDb.Properties("AllowBypassKey").Value = Enable---

Intellisense recognizes when I type "CurrentDB.properties", but how
come it would not allow a "allowbypasskey" to be used here?

I examined Tools/References and the ones I have listed for this app
that are checked are (and they're in this order):
1."Visual Basic for Applications"
2."Microsoft Access 10.0 Object Library"
3."OLE Automation"
4."Microsoft DAO 3.6 Object Library"
5."Microsoft ActiveX Data Objects 2.6 Library"
6."Microsoft Excel 10.0 Object Library"

With regard to "MyProblemApp.mdb" above, I have another older copy of
this same app "MyGoodApp.mdb" that uses the same exact code in the same
exact place, and the same 6 references are listed in the same order on
both apps.

If anyone has insights as to why "MyProblemApp" has this error and how
to correct it would be helpful.

Thank you.


Sub LockDatabase()
Dim db As Database
'REM out options not required

On Error Resume Next
Set db = CurrentDb()

'turns all security properties on and blocks access to DB window
ChangeProperty "StartupShowDBWindow", dbBoolean, False
ChangeProperty "StartupShowStatusBar", dbBoolean, False
ChangeProperty "AllowBuiltinToolbars", dbBoolean, False
ChangeProperty "AllowFullMenus", dbBoolean, False
ChangeProperty "AllowShortCutMenus", dbBoolean, False
ChangeProperty "AllowBreakIntoCode", dbBoolean, False
ChangeProperty "AllowSpecialKeys", dbBoolean, False
ChangeProperty "AllowBypassKey", dbBoolean, False

Set db = Nothing
On Error GoTo 0

End Sub

Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: deko | last post by:
I use this convention frequently: Exit_Here: Exit Sub HandleErr: Select Case Err.Number Case 3163 Resume Next Case 3376 Resume Next
1
by: Dalan | last post by:
Someone recently directed me to http://www.mvps.org/access/general/gen0040.htm for using a Function that includes the fourth place DLL to prevent undoing the AllowBypassKey = False. However, the...
0
by: Dalan | last post by:
Perhaps someone can share information on the methods to use to effect the automation process of creating the property to set the AllowBypassKey function. I was directed to:...
4
by: Dalan | last post by:
Perhaps someone can share information on the methods to use to effect the automation process of creating the property to set the AllowBypassKey function. I was directed to:...
7
by: Mark | last post by:
Help, please!! I am running MS Access 2000. I copied code from Michael Kaplan's website (see below) to disable the shift key for all non-admin users. I pasted the code into a new function. ...
19
by: MLH | last post by:
I call the following Sub and Function in frmLaunch's OnOpen event code. I keep getting Property Not Found error for the AllowBypassKey setting. Failure point is line #30 in the Function (not the...
2
by: dvorett | last post by:
I was wondering if there was a way to set a specific property to different vallues depending on the user? I need to users of the database to be able to add, edit, and read data in the forms but...
7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
2
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.