Results 1 to 2 of 2
  1. #1
    4 Star Lounger
    Join Date
    Jun 2001
    Posts
    531
    Thanks
    0
    Thanked 0 Times in 0 Posts

    autoExec macro headache (97)

    autoExec macro headache
    I picked up the following code from this site:

    'This Code disables the shift key
    '**********************************
    Public Sub SetAllowByPassKeyProperty()
    Dim db As Database
    Dim prp As Property
    Set db = CurrentDb
    Set prp = db.CreateProperty("AllowByPassKey", dbBoolean, False)
    db.Properties.Append prp
    End Sub

    It

  2. #2
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: autoExec macro headache (97)

    You only picked up part of the code you need. Go to Help from any code module, and type AllowByPassKey in the Find texbox of the help dialog. Select Startup Properties Example from the list and you'll find the entire startup code, including the parts you're missing.
    Charlotte

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •