View "AllowByPassKey" property

N

Number Cruncher

I want an administrator to lock and unlock a database by enabling and
disabling the shift key via the property "AllowByPassKey". I have used the
code
db.Properties("AllowByPassKey" = False) - or
db.Properties("AllowByPassKey" = True)

It is working great.

Before the Administrator leaves the database, I want the condition of the
ByPass property to be able to be displayed on a form so that the
admininstrator can readily see the state of that property.

How would I go about retrieving the current condition of that propery and
showing it on a form?

Thanks much!
 
D

Dirk Goldgar

Number Cruncher said:
I want an administrator to lock and unlock a database by enabling and
disabling the shift key via the property "AllowByPassKey". I have used
the
code
db.Properties("AllowByPassKey" = False) - or
db.Properties("AllowByPassKey" = True)

It is working great.

Before the Administrator leaves the database, I want the condition of the
ByPass property to be able to be displayed on a form so that the
admininstrator can readily see the state of that property.

How would I go about retrieving the current condition of that propery and
showing it on a form?


Does it work to have a text box on the form with this controlsource:

=CurrentDb.Properties("AllowBypassKey")

?
Note: that will display #Error if the property hasn't been created, but it
sounds like that will not be the case in your situation.

--

Dirk Goldgar, MS Access MVP
Access tips: www.datagnostics.com/tips.html

(please reply to the newsgroup)
 

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