Results 1 to 11 of 11
  1. #1
    djclntn is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    476

    Just want to have 1-Form open when open database

    Since it's the New Year (Happy New Year to all) I went into 'File' - 'Options' - 'Current Database' & change the Form under 'Display Form.' When I closed & reopen the database the first Form that automatically open is the Form I had selected under, 'Display Form.' However, the original Form that I had automatically open is still automatically opens each time I open the database. I don't know how to stop this second Form from automatically opening; I think that it might be a marco, but there's no code in the VBA? If it is a Macro how/where do I delete it? Any help/suggestions would be greatly apprechated!

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Do you have a Macro named "AutoExec"?
    "AutoExec" macros are automatically run when a database is first open, so it is also another popular place to open Start-Up forms.

  3. #3
    djclntn is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    476
    Thanks for responding to my post. Yes, the macro is named, "AutoExec"; might you know of a way I can end/stop the macro? thought about deleting the form itself which I rather avoid.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,625
    You can open the macro in design view and edit it. Or you can delete it entirely.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Changing the name of the macro may be an option. This way you can still use it but not have it automatically run at startup. Call it when you need it. Just depends on what is in the macro and how you decide to edit it.

  6. #6
    djclntn is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    476
    Hi June, as I said I'm not Shesure about how to go about editing a macro. in Design View I open the VBA xx it's blank. In the Property et under, "Event" everything is blank. I'm not sure where to go? If I may, Happy New Year!

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,625
    Macro code is not viewed in the VBA editor.

    Macros listed in the navigation pane are not tied to any particular object. They can be called in an event property or by VBA code or by another macro.

    Right click on the macro > Design View.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  8. #8
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    I usually do what ItsMe recommends. Just rename it. If it is named anything other than "AutoExec", it will not automatically run upon opening the database.
    But then you still have a copy of it, if you need it.

  9. #9
    djclntn is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    476
    I'm sorry June, but I still cannot find/locate this Macro. When you say, "Right click on Marco" where? In Design View I tried to Right click on, "Run Macro" that didn't work. Might you be a little more precise? Please excuse my ignorance & as always I thank you for your time!

  10. #10
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Access has different Objects. These Objects are Tables, Queries, Forms, Reports, Macros, and Modules. Usually, on the left-hand side of Access, you have an Object Explorer where you see all these objects. If you have any Macros, there should be a Macro section over there. Note, it may not be visible by default. You might need to click the drop-down box next to "All Access Objects" in the Object Explorer and select Macros to see it. Once you see it, you can rename it, edit it, etc.

    By the way, how do you know you have an AutoExec macro if you can't already see it.

  11. #11
    djclntn is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    476
    Thanks Joe,solved the issue!

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

Similar Threads

  1. Replies: 2
    Last Post: 08-07-2013, 07:44 AM
  2. Help on report to open form to open query...
    By saseymour in forum Programming
    Replies: 13
    Last Post: 07-16-2013, 08:11 AM
  3. Replies: 10
    Last Post: 06-13-2012, 05:57 AM
  4. Replies: 1
    Last Post: 05-03-2012, 02:25 PM
  5. Replies: 2
    Last Post: 02-26-2010, 08:14 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