Results 1 to 7 of 7
  1. #1
    ghillie30 is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2011
    Posts
    6

    Menu doesn't open after TransferDatabase

    Hi - Recent new guy here. in Access 2007 db, I'm using a menu form instead of switchboard. When I create a new db using transferdatabase, the menu form is copied but stays in the nav pane, it doesn't open when the db is opened. It can be opened after opening the nav pane, but I'd like it to open like switchboard as soon as the db is opened.



    I'm using

    DoCmd.TransferDatabase acExport, "Microsoft Access", filename, acForm, "menu","menu",False

    Is there an argument I'm missing, or should I export it as something other than a form?

    Thanks in advance for any help.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,970
    The original db probably has setting in project Options for the form to open by default. Click the Office button > Access Options > Current Database, look at the Display Form item.

    Why are you creating new database?
    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.

  3. #3
    ghillie30 is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2011
    Posts
    6
    Thanks for the quick response. Yes, the menu opens by default in the initial db. These dbs are for training records, whenever a new session begins, users will be creating a new db which uses existing forms, queries, reports, and lookup tables but blank data tables. I'm hoping to have the new db look identical to the old.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,970
    Did you check the setting I described for the new db?

    Still don't know why a separate db for each training session.
    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
    ghillie30 is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2011
    Posts
    6
    After the new db is created, I can open it and change the settings to have the menu open at start. But, I was hoping to have the new db import the same settings as the initial so that users can start as soon as they create it. We start new dbs for each session because the personnel list is totally different from session to session.

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,970
    Instead of project setting, would have to use code to open default form.

    I have customized ribbon so I use:
    Sub OnRibbonLoad(ribbon As IRibbonUI)
    ' Callbackname in XML File "onLoad"
    DoCmd.OpenForm "Login"
    End Sub

    An AutoExec macro should also be able to do this. Check out:
    http://www.vb123.com/toolshed/05_map/ch04_autoexec.htm
    http://office.microsoft.com/en-us/ac...010336239.aspx
    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.

  7. #7
    ghillie30 is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2011
    Posts
    6
    Totally did not think about a macro, I loaded an AutoExec to open the menu and it works fine. Thanks for the help.

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

Similar Threads

  1. Form doesn't open in Dialog mode
    By accessnewb in forum Programming
    Replies: 3
    Last Post: 08-02-2011, 08:38 AM
  2. Replies: 3
    Last Post: 12-09-2010, 11:50 AM
  3. DoCmd.TransferDatabase acImport Issue
    By remingtont in forum Programming
    Replies: 0
    Last Post: 11-12-2010, 03:59 PM
  4. getting error using docmd.transferdatabase
    By haggisns in forum Import/Export Data
    Replies: 1
    Last Post: 11-02-2010, 08:18 AM
  5. Open form - menu
    By pm4698 in forum Forms
    Replies: 9
    Last Post: 03-17-2010, 02:38 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