problem for two forms and one report

N

Natan

Ciao
sorry for my language-horror
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
Ideas in purpose?
Thanks
Natan- Italy
 
N

Natan

Natan said:
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
 
N

Natan

Natan said:
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 -

Ciao,
on the trace of your suggestion i have forced forms!Mask2.setfocus .
both the forms were visible but was impossible select it . Then i
have tried to modify the property MODAL(obligatory choice) of Mask1
from "YES" to "NO" and now is possible to work as before .
thanks of the council that has carried to the solution.
Salutes from Italy - Genua
Natan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top