Results 1 to 6 of 6
  1. #1
    Only4Access is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Feb 2012
    Posts
    38

    Arrow Pop Up Log-In Form only After Enabled ActiveX

    Hi Forum,



    I have created a Log In form (frmLogIn) in Access 2007. When 'Log In' button clicked open 'Main' form.

    Access Options >> Current Database >> Display Form. I select frmLogIn. It works fine.

    The problem is, this pop up as soon as i open the DB. I only want to pop up after they enabled the activex warning. Same like when we open Northwind DB, we get form like 'Welcome to the Northwind Traders sample database. In order to use this sample, click 'Options...' on the Message Bar and select 'Enable this content'. Alternatively, open the database from a Trusted Location.'

    How can i make it. thank you for your help.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    What I would do is make the display form one that says "If you see this, you need to ...". Then in the timer event of that form, with a very short interval, close it and open the login form. That code will only run if code has been enabled.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Only4Access is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Feb 2012
    Posts
    38
    Thank you Paul. Excellent. I created a start up form in Time Interval used 1, then On Timer Event

    DoCmd.Close acForm, Me.Name, acSaveNo
    DoCmd.OpenForm "frmLogIn", acNormal, , , , acDialog

    Is it OK? or should I add something else? When we open this from Trusted location, still showing Start Up form for nano second Is it possible to completely avoid showing Start Up form, if they open from Trusted locations?

    Thank you Paul

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Well, I don't think you can open it hidden with Access Options. You can use the method Northwind uses, which involves an autoexec macro and testing for trusted.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    Only4Access is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Feb 2012
    Posts
    38
    No problem Paul. Your method is OK for me. Thanks a lot for your help.

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Happy to help!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 15
    Last Post: 03-07-2013, 09:39 PM
  2. Replies: 7
    Last Post: 11-20-2011, 08:34 PM
  3. Replies: 2
    Last Post: 03-03-2011, 12:48 PM
  4. Replies: 5
    Last Post: 12-27-2010, 06:59 PM
  5. Replies: 4
    Last Post: 09-10-2009, 03:09 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums