Solved

Access 2007 - create macros to toggle between design view, form view, and layout view

Posted on 2011-03-17
6
353 Views
Last Modified: 2012-06-22
In a previous version of Access, I was able to create a macro called AutoKeys which allowed me to assign key strokes to commands.  Some of them are now obsolete.  

Example:  {F7} signifies the F7 function key.  Assigned to this key was the action RunCommand and the command was DesignView.  DesignView appears to no longer be valid,  How could I do this type of thing in Access 2007?  Thanks!  
0
Comment
Question by:ssailer
  • 2
  • 2
  • 2
6 Comments
 
LVL 119

Accepted Solution

by:
Rey Obrero earned 500 total points
ID: 35157241
you can stilll use the AutoKeys macro in 2007

http://msdn.microsoft.com/en-us/library/bb177367%28office.12%29.aspx

see this for the list of acCommand

http://msdn.microsoft.com/en-us/library/bb225843%28v=office.12%29.aspx

sample;
DesignView  > acCmdDesignView
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 35157496
There are keyboard shortcuts to do this as well:

For example:
Ctrl+,
(Hold down the Control key and tap the comma key)
...will bring you to design view from Form view.

Note that this keystroke, and it's companion keystroke  Ctrl+.
...actually toggle you forward and backward through all the views of a form/Report.

This is what I have used since Access 2003, ...thus avoiding the extra Code or Macros.

;-)

JeffCoachman
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 35157543
A list of all of Access 2007 keyboard shortcuts can be found here:
http://office.microsoft.com/en-us/access-help/keyboard-shortcuts-for-access-HP010091394.aspx
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Comment

by:ssailer
ID: 35158062
Capricorn1 - this isn't with macros though, right?  acCmdDesignView is not available in macros as an action argument.  
0
 
LVL 119

Expert Comment

by:Rey Obrero
ID: 35158123
did you click on Show all actions from the ribbon?
0
 

Author Comment

by:ssailer
ID: 35158181
Capricorn1 ... No, I hadn't done that.  Now I did and the command is there.  However, I'm getting a caution sign with an exclamation point through it next to the macro.  When I run it, it seems fine.  Not sure what the caution sign is for, but it appears to be working.  This is exactly what I wanted to do. Thank you!
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

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…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

760 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

20 Experts available now in Live!

Get 1:1 Help Now