Return to previous form

  • Thread starter Thread starter Art
  • Start date Start date
A

Art

Hi Rob,
Absolutely. Using the command button wizard you can
create a button on your form that will close the form
exposing the previous form behind it. If the previous form
is closed or not visible, it is easy to put a line of vba
code into the Close Event of your form to both close the
form and open or make visible the previous one.

Hope This Helps
-----Original Message-----
Is there a way to return to the previous form that was
open from the form that's currently open, similar to the
Back button on internet browsers?
 
One way I do a "return to last form" when there are more
than one possible paths to the current form is to place a
hidden textbox on the form and direct whichever previous
form that sent me there to poke a number into that
control. Then I have a command button with a back arrow as
a control that checks that textbox and opens whichever
form it was that poked in the number. "If textback = 1
then......else if textback = 2 then.....and so on.
 
Back
Top