set db.Properties in ms access

Posted on 2009-12-21
Last Modified: 2013-11-27
Hi Expert,

I used the following code for testing and learning purpose in my VBA code.
      Set dbs = DBEngine(0)(0)
      dbs.Properties("StartupShowDBWindow") = False
      dbs.Properties("StartupShowStatusBar") = False
      dbs.Properties("AllowBuiltinToolbars") = False
      dbs.Properties("AllowFullMenus") = False
      dbs.Properties("AllowBreakIntoCode") = False
      dbs.Properties("AllowSpecialKeys") = False
      dbs.Properties("AllowBypassKey") = False

Now I can not even view my code? Waht I did wrong and what I can do next to be able to see my code and change it?

Thanks in advance.

Question by:dshi15
    LVL 75

    Accepted Solution

    " Waht I did wrong"

    For starters ... this:

     dbs.Properties("AllowBypassKey") = False

    See this link:

    Scroll down to ' Pass Shift Key Code'

    You can use this code to browse to your mdb ... and re enable the Shift Key Bypass.

    LVL 75

    Expert Comment

    by:DatabaseMX (Joe Anderson - Access MVP)
    Note ... once you can get back in, you can change the other properties as necessary.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Suggested Solutions

    When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
    Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
    Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
    With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now