Access Form - open in datasheet view by default

Posted on 2008-11-04
Last Modified: 2013-11-28
I have a button on a form which opens another form.
I want the latter to open in datasheet view.
How do I achieve that?

Question by:rutlandict
    LVL 77

    Accepted Solution

    Make sure the second argument of the open statement specifies datasheet
    docmd.OpenForm "frmname",acFormDS
    LVL 13

    Expert Comment

    Or under properties set to datasheet view for the form, but the above will do it.

    Author Comment

    where is this open statement to be found!?
    LVL 77

    Expert Comment

    Look at your button properties.  In the OnClick event property it will say [Event Procedure] - double click that and it will take you to the code.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
    I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
    In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
    With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now