How to go to Page2 of a form by pressing a button

Gouri Dutta

Registered User.
Local time
Today, 05:15
Joined
May 20, 2011
Messages
10
I am trying to Go to second page (named Page2) of a form by pressing a button created on Page1 as I cannot put codes (like KeyDown ) on the last field of page1 because of the nature of the last field (it is an ON and OFF button) on Page1

But I could not create any button (by Wizzard) to go to Page2. Is there any way out?

Thanks.
 
There are several things people mean when they talk about 'pages' in Access, so you need to explain a little more what you're trying to do. Is this a 'page' on a Tabbed Control?

If so, since the Index for pages on a Tabbed Control are Zero-based, the code for going to Page2 would be:
Code:
Private Sub GoToPage2_Click()
 Me.TabbedControlName.Value = 1
End Sub
If you're not talking about a Tabbed Control's pages, explain exactly what you are talking about.

Linq ;0)>
 
Thank you for your help! Instead of putting value=1, I put Setfocus function. It worked. thanks again.

Gouri
 

Users who are viewing this thread

Back
Top Bottom