Results 1 to 4 of 4
  1. #1
    videoclocknet is offline Novice
    Windows XP Access 2003
    Join Date
    May 2011
    Posts
    10

    Easy question: Selecting the main form to execute at opening a .mdb file

    Hello,



    this is my first post in this forum. I'm new in Access, so I think you can help me in that.

    I have some forms in my .mdb file. When I open my .mdb file, a form (let's call A form) is executed. Now we have created a new form with more features (let's call B form), so we want B form to be executed at opening the .mdb file instead of A form. B form calls A form, so we don't want forms names to be changed.

    Is it possible?

    Thanks.

  2. #2
    Join Date
    Apr 2011
    Posts
    18
    Yes it is.

    In Access you goto Tools->Startup and there you can set which form to open initially.

    Inside Form B, you can then add code to open form A. This could be done in 1 of several events, depending on your need. For example the Load / current / close, or at the click of a button. The code to use would be:
    Code:
    Docmd.OpenForm "frm_A"
    'To close the form b
    Docmd.Close acForm, Me.Name

  3. #3
    videoclocknet is offline Novice
    Windows XP Access 2003
    Join Date
    May 2011
    Posts
    10
    Yes, yes!

    Thank you very much!

    Your help is very appreciated!

  4. #4
    Join Date
    Apr 2011
    Posts
    18
    You are welcome. Glad to be of assistance.

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

Similar Threads

  1. Easy Form Question
    By B-dub in forum Forms
    Replies: 3
    Last Post: 12-26-2010, 07:04 PM
  2. opening a second form from main/subform
    By PJPCVP in forum Database Design
    Replies: 1
    Last Post: 10-29-2010, 09:50 PM
  3. Easy question
    By Danzig in forum Access
    Replies: 11
    Last Post: 10-28-2010, 06:48 PM
  4. Can a report execute generate a file
    By techexpressinc in forum Reports
    Replies: 7
    Last Post: 01-16-2010, 04:03 AM
  5. Replies: 1
    Last Post: 02-27-2006, 07:46 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