Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Reports / Printing / April 2008

Tip: Looking for answers? Try searching our database.

problem for two forms and one report

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Natan - 29 Apr 2008 11:09 GMT
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
Marshall Barton - 29 Apr 2008 16:37 GMT
>I have a problem on my program developed on Access2003 .
>It as composed  two forms (Mask1 and Mask2 both popup and dialog edge)
[quoted text clipped - 23 lines]
>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

Signature

Marsh
MVP [MS Access]

Natan - 29 Apr 2008 17:01 GMT
> >I have a problem on my program developed on Access2003 .
> >It as composed  two forms (Mask1 and Mask2 both popup and dialog edge)
[quoted text clipped - 39 lines]
>
> - Mostra testo tra virgolette -

thanks, now I try!!
Natan
Natan - 29 Apr 2008 17:50 GMT
> >I have a problem on my program developed on Access2003 .
> >It as composed  two forms (Mask1 and Mask2 both popup and dialog edge)
[quoted text clipped - 39 lines]
>
> - 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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.