Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Navigation Within a Multipage Form

Status
Not open for further replies.

Syerston

Programmer
Joined
Jun 2, 2001
Messages
142
Location
GB
I want to create a multipage form (4 pages) with 2 command buttons, next and previous, to allow the user to navigate within the form. The form should track the users location, so that when page 4 is reached the next button is disabled and when the form is on page 1 the previous button is disabled.

I'm happy enough with creating the multipage form but the VBA code for the command buttons is giving me a headache.

Can anyone please help?
x-)
 
On click

docmd.GoToPage Page,X,Y

select case Me.Page
case 1
cmd1.Visible = False
cmd2.Visible = True
cmd3.Visible = False
case 2
cmd1.Visible = True
cmd2.Visible = True
cmd3.Visible = False

Etc
Tyrone Lumley
augerinn@gte.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top