How to navigate through forms

I would like to have a next and previous button on my apps. Back button to go back to the last form and next to go to the next form. So on the Form 1 there should be a button call next with code like: me.close (Form1) then open Form 2 and on the back button on Form 2 there should be could like : Me.Form2.Close and Form1.open

If button previous is clicked then

form2.close

form1.open

else if button next is clicked then

form 1.close

form 2.open

end if

Well i know this line of code is wrong so could you guys help me out



Answer this question

How to navigate through forms

  • solids

    would that really make it more efficient I'm not sure if that is the best way to do it though. I mean it will be reallly simple if i do it that way but then you got many boxes on top of each other. hmmm. Thank you thouhg. But say if i was to do it form by form could you help me with the code. thanks
  • benktesh

    Instead of navigationg through forms...think about navigating the visibility of panels and controls on the same form

    otherwise you will have to create global variables to inter-reference all of your forms from each other!



  • How to navigate through forms