Link to home
Start Free TrialLog in
Avatar of Sandy Sailer
Sandy SailerFlag for United States of America

asked on

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

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!  
ASKER CERTIFIED SOLUTION
Avatar of Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
Avatar of Sandy Sailer

ASKER

Capricorn1 - this isn't with macros though, right?  acCmdDesignView is not available in macros as an action argument.  
did you click on Show all actions from the ribbon?
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!