Results 1 to 4 of 4
  1. #1
    gar is offline Advanced Beginner
    Windows 7 32bit Access 2013
    Join Date
    Nov 2011
    Posts
    42

    Form opens in wrong view

    I have just created a "switchboard" for the first time but I have
    encountered a problem. If I invoke a certain form by double clicking the
    relevant entry in the navigation pane, the form opens in database view which is
    the default view as per the form property sheet. If, on the other hand, I


    invoke the same form from the switchboard, it opens in form view despite the
    fact that form view is explicitly disallowed in the property sheet. I would be grateful for any help with this.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Did you use switchboard wizard? I have never used it, don't like switchboard - it uses macros and I don't use macros. I suspect the macro code is specifying form view which overrides the property setting.
    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
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    When using DoCmd.OpenForm, to open one Form from another, as you're doing (a Switchboard is just a simplified Form) you have to use the syntax

    DoCmd.OpenForm "YourFormName", acFormDS

    to open the Form in Datasheet View...even if Datasheet is the Default View!

    If, as June7 guessed, you are, in fact using the Switchboard Wizard, it doesn't use this parameter in the syntax for either of the two choices it gives you, for opening Forms.

    The Switchboard Wizard is very rigid in how it does things, such as opening Forms, which is why very few experienced developers use it; most of us simply 'roll our own,' using a standard Form.

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

  4. #4
    gar is offline Advanced Beginner
    Windows 7 32bit Access 2013
    Join Date
    Nov 2011
    Posts
    42
    Thanks very much for your help; making some progress now.

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

Similar Threads

  1. Replies: 21
    Last Post: 08-05-2013, 06:23 AM
  2. Replies: 6
    Last Post: 08-07-2012, 02:44 PM
  3. Replies: 6
    Last Post: 08-08-2011, 10:29 AM
  4. Replies: 3
    Last Post: 05-28-2011, 09:54 PM
  5. Form opens table in datasheet view
    By franklbl in forum Forms
    Replies: 9
    Last Post: 03-23-2011, 09:43 PM

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