View Full Version : Returning to previous form


cmcritchie
10-01-2001, 04:50 AM
Hi,
I'm wondering if there is some VBA method to allow a user to close the current form & automatically reopen which ever form the user had open prior the current one. The reason is that the user may open this current form from a number of different forms & I need to know which one it was that they opened it from. Currently the only way I can achieve it is to leave the previous form open in the background and then just close the new one.

Thanks,

Drew
10-01-2001, 05:48 AM
Check this (http://www.access-programmers.co.uk/ubb/Forum4/HTML/003968.html) it should provide you with a way of doing it. it's not clear if Irie got it working or not, but it certainly will,

Drew

Jack Cowley
10-01-2001, 10:44 AM
I just leave the previous form open. Works well for me....

cmcritchie
10-01-2001, 11:57 PM
Thanks Drew - that works just as I needed.

Jack - the reason I don't want to leave
the previous ones open is that the newer forms are smaller than the previous + so it looks untidy to have them open in the background.

Rich
10-02-2001, 12:35 AM
Just toggle the visible property of the forms, it's much easier.

cmcritchie
10-02-2001, 01:03 AM
Rich - Thanks, that's what Drew's solution does - however, the problem was knowing which form to make visible again after the new form was closed (but it's sorted now with Drew's solution).

cmcritchie
10-02-2001, 01:03 AM
Rich - Thanks, that's what Drew's solution does - however, the problem was knowing which form to make visible again after the new form was closed (but it's sorted now with Drew's solution).