Bypass shiftkey?

H

Harmannus

Hallo,

Is want to use below code to bypass the shiftkey: Access says "dbText" is
not defined. To what must i change dbText when i use the below references?

Sub SetFullStartupProperties()
ChangeProperty "StartupForm", dbText, "Switchboard" 'Warning! Change to
name of startupform
ChangeProperty "StartupShowDBWindow", dbBoolean, False
ChangeProperty "StartupShowStatusBar", dbBoolean, True
ChangeProperty "AllowBuiltinToolbars", dbBoolean, True
ChangeProperty "AllowToolbarChanges", dbBoolean, True
ChangeProperty "AllowFullMenus", dbBoolean, True
ChangeProperty "AllowShortcutMenus", dbBoolean, True
ChangeProperty "AllowBreakIntoCode", dbBoolean, True
ChangeProperty "AllowSpecialKeys", dbBoolean, True
ChangeProperty "AllowBypassKey", dbBoolean, True
End Sub

I use the default reference for Acc2000:
- Visual Basic for Applications
- Microsoft Access 10.0 object library
- OLE Auotmation
- Microsoft ActiveX data objects 2.1 library

Thanx in advance for any tips!

Regards,

Harmannus
 
D

Douglas J. Steele

I'm assuming you're using the ChangeProperty function from the Help file.
What it doesn't say is that it's using DAO, and you don't have a reference
to DAO in your application.

With any code module open, select Tools | References from the menu bar,
scroll through the list of available references until you find the one for
Microsoft DAO 3.6 Object Library, and select it. Then, make the following
change to your declaration of ChangeProperty:

Dim dbs As Database, prp As DAO.Property
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top