<form id="hbx9t"></form>

<noframes id="hbx9t">

    <em id="hbx9t"><span id="hbx9t"></span></em>

        <noframes id="hbx9t"><address id="hbx9t"><th id="hbx9t"><progress id="hbx9t"></progress></th></address>
        office交流網--QQ交流群號

        Access培訓群:792054000         Excel免費交流群群:686050929          Outlook交流群:221378704    

        Word交流群:218156588             PPT交流群:324131555

        解決Access隱藏主界面窗口后 報表預覽不顯示

        2018-12-29 15:43:00
        tmtony8
        原創
        11843

        在前面,我們講過用API去隱藏主界面窗口?!?a href="/access-toolbar/624.html">Access程序隱藏主界面窗口(只顯示打開窗體)》

        窗體顯示需要設置彈出和模式為“是” 的,而報表預覽并不會彈出,此時如果進入了報表預覽即會導致窗體操作界面丟失。


        小編的處理辦法是在預覽報表的時候,先關閉掉隱藏主界面的功能,待報表關閉后再重新打開。

        Public Function 顯示()
             ShowWindow Access.Application.hWndAccessApp, 0
             報表名.Visible = True
        End Function
        Public Function 隱藏窗體()
             ShowWindow Access.Application.hWndAccessApp, 5
             報表.Visible = False
        End Function
        


        打開報表預覽時,主窗體背景界面是存在的。


        在報表中調用函數:

        Private Sub Report_Close()
            Call 顯示
        End Sub
        
        Private Sub Report_Open(Cancel As Integer)
            Call 隱藏窗體
        End Sub
          分享