473,790 Members | 2,481 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Prope rties("AllowByp assKey").Value = Enable---

Intellisense recognizes when I type "CurrentDB.prop erties", 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.m db" 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 "MyProblemA pp" has this error and how
to correct it would be helpful.

Thank you.

Nov 13 '05 #1
1 2241
On 27 Jul 2005 08:05:34 -0700, "TechBoy" <ro******@msn.c om> 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.Prope rties("AllowByp assKey").Value = Enable---

Intellisense recognizes when I type "CurrentDB.prop erties", 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.m db" 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 "MyProblemA pp" 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 "StartupShowDBW indow", dbBoolean, False
ChangeProperty "StartupShowSta tusBar", dbBoolean, False
ChangeProperty "AllowBuiltinTo olbars", dbBoolean, False
ChangeProperty "AllowFullMenus ", dbBoolean, False
ChangeProperty "AllowShortCutM enus", dbBoolean, False
ChangeProperty "AllowBreakInto Code", dbBoolean, False
ChangeProperty "AllowSpecialKe ys", 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
6617
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
1625
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 code apparently fails to run on Access 97. The part that does not work is "PropType As DAO.DateTypeEnum" - Automation failed when attempting to compile. Has anyone any clues why, or is this code only for Access 2000> Thanks, Dalan
0
1626
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: http://www.mvps.org/access/general/gen0040.htm and downloaded the function module that includes setting the fourth DDL part to true. It initially failed to compile using Access 97 because "PropType As DAO.DataTypeEnum" is not an automation type that Visual Basic...
4
2857
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: http://www.mvps.org/access/general/gen0040.htm and downloaded the function module that includes setting the fourth DDL part to true. It initially failed to compile using Access 97 because "PropType As DAO.DataTypeEnum" is not an automation type that Visual Basic...
7
11032
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. I then created a macro, used the Run Code command and selected my function. When I select the function in the Expression Builder, it appears as:
19
6274
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 Sub). Ideas? Sub SetStartupProperties() On Error GoTo SetStartupProperties_Err 10 ChangeProperty "StartupForm", dbText, "frmLaunch" ' Form you want to open at startup 20 ChangeProperty "StartupShowDBWindow", dbBoolean, False ...
2
4646
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 not be able to change the design in anyway. I have all the settings the way I want and then I figured I could just hold the shift on startup when I log in as the administrator, unfortunately that also works for the other users. Can I set...
7
5026
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. I created the websetup and built the MSI, have the bundled version. Copied to webserver and ran Websetup.msi. Said I had to remove old version, which I did, then reran WebSetup.msi and keeps giving me this error. "The installer was interrupted...
2
19494
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 will be writing this article intended for those who are in the same level, or maybe lower, of my technical knowledge. I would be using layman's words, or maybe, my own words as how I understand them, hoping, you will understand it the same way that...
0
9666
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10413
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10200
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10145
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7530
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6769
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5551
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4094
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2909
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.