Solved

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

Posted on 2014-02-19
1
764 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
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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Meetings to discuss business process can waste time, and often do .  The meeting's dialog can get confusing when participants have different professional perspectives and backgrounds.  A jointly-developed process picture helps wade through the confu…
PaperPort has a feature called the "Send To Bar". It provides a convenient, drag-and-drop interface for using other installed software, such as Microsoft Office. However, this article shows that the latest Office 2016 apps (installed with an Office …
This video shows where to find the word count, how to display it, and what it breaks down to in Microsoft Word.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…

777 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