Re: problem for two forms and one report



On 29 Apr, 17:37, Marshall Barton <marshbar...@xxxxxxxxxx> wrote:
Natan wrote:
I have a problem on my program developed on Access2003 .
It as composed  two forms (Mask1 and Mask2 both popup and dialog edge)
and reports .
Start Mask1 and click the button that it open Mask2 overlapped
Mask1(mask1 is visible under Mask2 ) . On Mask2 there are any push-
button for as many reports.
When click one show the correspondent report and hide forms Mask1 and
Mask2. When I close or print the report i would have to the Mask2 over
Mask1

on click push-button on Mask2--------------------------------
Docmd.openReport "MyReport"
forms!Mask1.visible=false
forms!Mask2.visible=false

I control the report and close or print it

On report-close :
forms!Mask1.visible=true
forms!Mask2.visible=true
------------------------------

It will be strange but Mask1 is visible and Mask2 is not visible ....
I have controlled the code in debug but even if the line
forms!Mask2.visible=true is processed (no error) the state
visible=true it is not executed .... the Mask2 is hide and loaded, i
see only Mask1 ... mistery because some days before it worked normally

I think both forms are visible, but Mask2 is behind Mask1.

Try to force Mask2 back on top of Mask1:
        forms!Mask1.visible=true
        forms!Mask2.visible=true
        forms!Mask2.SetFocus

You could avoid the problem if you could make Mask2 a
subform on Mask1

--
Marsh
MVP [MS Access]- Nascondi testo tra virgolette -

- Mostra testo tra virgolette -

thanks, now I try!!
Natan
.


Loading