Keyboard shortcuts to change between pages in a form?

nish81

New member
Local time
Today, 01:23
Joined
Oct 21, 2016
Messages
1
Hi everyone,

I've created a form with multiple pages, where each one is a subform. I want a quick way to switch to a given page. I know about the Ctrl+Tab shortcut, but I want one that takes me directly to a given page. For example, something like 'Ctrl+2' for the second page, etc. Is there any way to set this up?

Thanks!
 
Hi everyone,

I've created a form with multiple pages, where each one is a subform. I want a quick way to switch to a given page. I know about the Ctrl+Tab shortcut, but I want one that takes me directly to a given page. For example, something like 'Ctrl+2' for the second page, etc. Is there any way to set this up?

Thanks!
try autokeys macro
 
One way you could do this is add buttons to your forms with captions like &1, &2, &3, ... &9. The ampersand causes the letter or number that follows to be underlined when viewed in form view and also makes it so the buttons code is run when alt + the letter/number is pressed. So the code of a button with the caption &1 would run when you press Alt + 1. The code for these button would simply be the Form GotoPage Method So the code for the button with the caption &1 would be:

Code:
Me.GotoPage 1

Unfortunately these buttons need to be visible to work but if you don't want them seen you can set their heights and widths to 0 and they won't show up but still work.

Of course this is only going to work up to page 9.

I've attached a messy demonstration database.
 

Attachments

Last edited:

Users who are viewing this thread

Back
Top Bottom