returning to main menu form after viewing a report

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

From a Main Menu form I have a button that will generate a report in VIEW format. I then want the ability to select another button (while viewing the report) that will return me to the Main Menu. How can I do this ?
 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On the report's toolbar there is a Close button. Click that & the
focus should be returned to the main menu form (since that was the
last object to have the focus). If you really want another button to
close the report:

1. On the Main Menu form create a button.
2. In the button's OnClick property put [Event Procedure] and click
the build button to the right.
3. In the OnClick event procedure put something like this:

DoCmd.Close acReport, "Report Name"

HTH,

MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQD493oechKqOuFEgEQLmpACggT/bXWLBYM1fYU3TEVjT4zcjAu8AoIR8
XaOzU/lqjkHVpW+uY7tw/PDW
=1O3k
-----END PGP SIGNATURE-----
 
Back
Top