Solved

How to I change the Default View property in runtime with VBA code in Access 2010

Posted on 2014-02-19
1
791 Views
Last Modified: 2014-07-08
I am looking for a code snippet that I can use to change the default view of a form in Ms Access 2010. Something along the lines of frmMain.DefaultView = Single Form that I could put in the click event of a button and upon clicking the button the view of the form changes.
0
Comment
Question by:pundip44
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 27

Accepted Solution

by:
MacroShadow earned 500 total points
ID: 39872640
DoCmd.RunCommand(acCmdDatasheetView) to switch to Datasheet view

DoCmd.Runcommand(acCmdFormView) to switch to Form View
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
An overview on how to enroll an hourly employee into the employee database and how to give them access into the clock in terminal.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

726 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