Deez
01-18-2007, 06:37 AM
I ma trying to use these commands to view reports in a database in which the Access window has been minimized. To do this you need to maximize the access window and then open the report. When the report is closed you must then minimize access again. I recieved this info from this thread:
http://www.access-programmers.co.uk/forums/showthread.php?t=20065&highlight=appminimize
(http://www.access-programmers.co.uk/forums/showthread.php?t=20065&highlight=appminimize)
The problem lies in that when I put the AppMaximize and AppMaximize commands in the on open and on close events I get the error saying they are not available now. I believe it has to do with the fact that the original form is still open in some small way. I put the close line above the AppMaximize in the macro as well as just after the call to open the report in the code from the form neither seems to work. The only solution I have found is to go to a macro to open the report and then on open of the report run the maximize command. Then having the close command in the on open event of the report works just fine.
However this creates and excessive amount of macros, so is there a better way around this?
http://www.access-programmers.co.uk/forums/showthread.php?t=20065&highlight=appminimize
(http://www.access-programmers.co.uk/forums/showthread.php?t=20065&highlight=appminimize)
The problem lies in that when I put the AppMaximize and AppMaximize commands in the on open and on close events I get the error saying they are not available now. I believe it has to do with the fact that the original form is still open in some small way. I put the close line above the AppMaximize in the macro as well as just after the call to open the report in the code from the form neither seems to work. The only solution I have found is to go to a macro to open the report and then on open of the report run the maximize command. Then having the close command in the on open event of the report works just fine.
However this creates and excessive amount of macros, so is there a better way around this?