Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 6th, 2007, 08:16 AM
Registered User
 
Join Date: Sep 2007
Location: Baltimore, Maryland, USA.
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Hotkeys in macros

Hi, all. I have another question. Can anyone tell me how I can attach a hotkey combination (e.g. CTRL+M) to a macro or a bit of VBA code in order to activate the macro or code in MS Access?

Thanks in advance.

Kind regards,


Hailey
www.msaccessrepair.com - Access Recovery
Reply With Quote
  #2 (permalink)  
Old September 7th, 2007, 12:37 PM
Friend of Wrox
Points: 9,611, Level: 42
Points: 9,611, Level: 42 Points: 9,611, Level: 42 Points: 9,611, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2004
Location: Washington, DC, USA.
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

You can make buttons to run your macros, and then Hot Keys for those buttons. But you would have to have a form open for this to work.

If you create a form with all the buttons to run your macros, then create Hot Keys for the buttons, then open the for acHidden when the database opens, this will give you the functionality you want. There may be a more elegant way, though, like custom menus with Hot Keys for the menu buttons.

Did any of that help?


mmcdonal
Reply With Quote
  #3 (permalink)  
Old September 10th, 2007, 03:13 AM
Registered User
 
Join Date: Oct 2006
Location: Leigh, Lancashire, United Kingdom.
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Hailey,
What are you tryring to achieve. Where are you using the Hot keys? - In a form, in code? You can use the sendkeys in both macros and vba by writing the combination of the keys you want pressed.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
is it possible to have system level hotkeys in C# stygen .NET Framework 2.0 0 March 13th, 2007 07:36 AM
is it possible to have system level hotkeys in C# stygen .NET Framework 1.x 0 March 12th, 2007 11:58 PM
Excel/VBA and hotkeys Susan Chandler Excel VBA 2 September 9th, 2004 07:24 AM
Toolbar Control and HotKeys Kenny Alligood VB How-To 0 April 21st, 2004 10:20 AM
Macros vbprogwb Access VBA 21 November 12th, 2003 05:18 PM



All times are GMT -4. The time now is 08:40 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.