Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2011-03-17
6
Medium Priority
?
367 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 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 2000 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
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 

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 120

Expert Comment

by:Rey Obrero (Capricorn1)
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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
Windows Explorer lets you open cabinet (cab) files like any other folder. In VBA you can easily handle normal files and folders, but opening and indeed creating cabinet files takes a lot more - and that's you'll find here.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

885 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