Results 1 to 5 of 5
  1. #1
    Paul H's Avatar
    Paul H is offline Expert
    Windows XP Access 2010 32bit
    Join Date
    Sep 2011
    Location
    Richmond, VA
    Posts
    591

    Opening a Form in Datasheet View

    *Sorry if this is a double post. I received an error on the first try.*



    I am opening a form in datasheet view from another form, but it opens up in Continuous Form view. When I open the form manually it opens up properly. I don't see any arguments in the Open Form command to set the view. Here's my code.

    Code:
    DoCmd.OpenForm "frmAllChecks"
    What am I missing?

  2. #2
    Paul H's Avatar
    Paul H is offline Expert
    Windows XP Access 2010 32bit
    Join Date
    Sep 2011
    Location
    Richmond, VA
    Posts
    591
    Never mind. I kept hacking at it and now it works. Don't know why. One of those Access things, I guess.

  3. #3
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Quote Originally Posted by Paul H View Post
    I don't see any arguments in the Open Form command to set the view.
    Presumably you noticed the View argument, of which one option is acFormDS?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  4. #4
    Paul H's Avatar
    Paul H is offline Expert
    Windows XP Access 2010 32bit
    Join Date
    Sep 2011
    Location
    Richmond, VA
    Posts
    591
    I did see that, but didn't recognize "acFormDS" which is a little cryptic, I think.

    Thanks for the tip.

  5. #5
    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
    'Cryptic' is Access' middle name! Seriously, you always have to be careful when opening a Form using

    DoCmd.OpenForm

    Things frequently are not what they seem!

    Linq ;0)>

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

Similar Threads

  1. Opening Single Records from Datasheet View
    By pdowg881 in forum Access
    Replies: 7
    Last Post: 04-17-2015, 11:35 AM
  2. Replies: 3
    Last Post: 02-10-2014, 03:57 PM
  3. Replies: 3
    Last Post: 08-18-2013, 09:14 PM
  4. Replies: 6
    Last Post: 11-21-2012, 05:10 PM
  5. Replies: 16
    Last Post: 09-12-2012, 08:39 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