Ask Experts Questions for FREE Help !
Ask

Bypass the bypass key

Asked Feb 12, 2012, 12:01 AM — 1 Answer
Hi everyone, I found a code for bypassing the shift key in access but I don't know where to keep this code. The codes are follows:
=================================================
Public Sub SetStartupOptions(propname As String, _
propdb As Variant, prop As Variant)
'Set passed startup property.
Dim dbs As Object
Dim prp As Object
Set dbs = CurrentDb
On Error Resume Next
dbs.Properties(propname) = prop
If Err.Number = 3270 Then
Set prp = dbs.CreateProperty(propname, _
propdb, prop)
dbs.Properties.Append prp
End If
Set dbs = Nothing
Set prp = Nothing
End Sub
=============================================
The code above I don't know where I have to write this code and here the other code
=============================================
Call SetStartupOptions("AllowBypassKey", dbBoolean, False)
Call SetStartupOptions("StartupShowDBWindow", dbBoolean, False)
=============================================

Please help!

1 Answer
ScottGem's Avatar
ScottGem Posts: 58,147, Reputation: 28160
Computer Expert and Renaissance Man
 
#2

Mar 30, 2012, 04:44 AM


Where did you find the code? There should have been instructions on how to use it.

The SetStartup subroutine goes in a global module.

The Call routines are what you run to set or unset the options.
Helpful

Not your question? Ask your question View similar questions

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Add your answer here.

Remove Text Formatting

Undo
Redo
 
Decrease Size
Increase Size
Bold
Italic
Underline
Align Left
Align Center
Align Right
Ordered List
Unordered List
Decrease Indent
Increase Indent
Insert Email Link
Wrap [QUOTE] tags around selected text
Wrap [CODE] tags around selected text
Wrap [HTML] tags around selected text
Wrap [PHP] tags around selected text
Wrap [YOUTUBE] tags around selected text
Notification Type:



Check out some similar questions!

What is gastric bypass? [ 2 Answers ]

I want to look in to getting this done and I just want to know more about every thing I look up on it I get different answers. I want to know how much you have to weight to get in done and how old you have to be

Should I get Gastric Bypass? [ 11 Answers ]

I'm 5'6" and I weighed 200 in june of 07'...now..march 01st of 08 I weight 255... Happened?...I don't eat ne differently..I don't work out that much but I never really have...I mean do I need to get this done?..I've tried everything and I just can't lose the weight! It just keeps adding up...and...

How do I bypass the remote [ 1 Answers ]

Can operate the light on the ceiling fan from the wall switch. If the light is on the fan will not work. I can turn the fan on but can not shut it off with the remote. Can only turn the fan on with the light off.

How do I bypass dansguardian [ 2 Answers ]

I'm stuck in the hospital and using my laptop. They have wireless internet for the public but ruin it with "dansguardian". I can't go to sites such as "full tilt poker" and even some news web sites get blocked by it. Oddly, myspace was hit or miss on what profiles I could view. Not sure why...

Gastric bypass [ 4 Answers ]

I had gastric bipass surgery in 2003 . Greatest thing I ever did. I have lost 142 lbs. Now how to get rid of skin other that surgery? I keep exersizing? HELP! ANY SUGESTIONS? THANKS


View more Access questions Search