|
8#
楼主 |
发表于 2018-8-23 08:37:16
|
只看该作者
Private Declare Function SetProcessWorkingSetSize Lib "kernel32" (ByVal hProcess As Long, ByVal dwMinimumWorkingSetSize As Long, ByVal dwMaximumWorkingSetSize As Long) As Long
Private Declare Function GetCurrentProcess Lib "kernel32" () As Long
Private Sub Form_Load()
Me.frmAndonXTsub.Requery
Me.frmAndonXTsub.Width = Me.WindowWidth - 600
Me.Text1 = DCount("*", "qforAndonXT", "问题类别=1")
Me.Text1.Requery
Me.Text2 = DCount("*", "qforAndonXT", "问题类别=2")
Me.Text2.Requery
Me.Text3 = DCount("*", "qforAndonXT", "问题类别=3")
Me.Text3.Requery
Me.Text4 = DCount("*", "qforAndonXT", "问题类别=4")
Me.Text4.Requery
Me.Text5 = DCount("*", "qforAndonXT", "问题类别=5")
Me.Text5.Requery
Me.Child1.Requery
Me.Child2.Requery
Me.Child3.Requery
Me.Child4.Requery
Me.Child5.Requery
Me.Child6.Requery
Me.Child7.Requery
Me.Child8.Requery
Me.Child10.Requery
Me.Child11.Requery
Me.Child12.Requery
Me.Child13.Requery
Me.Child14.Requery
Me.Child15.Requery
Me.Child16.Requery
Me.Child17.Requery
Me.Child18.Requery
Me.Child19.Requery
Me.Child20.Requery
Me.Child21.Requery
Me.Child22.Requery
Me.Child23.Requery
Me.Child24.Requery
Me.Child25.Requery
Me.Child26.Requery
Me.Child27.Requery
Me.Child28.Requery
Me.Child29.Requery
Me.Child30.Requery
Me.Child31.Requery
Me.Child32.Requery
Me.Child33.Requery
End Sub
Private Sub Form_Open(Cancel As Integer)
DoCmd.ShowToolbar "Ribbon", acToolbarNo
DoCmd.Maximize
End Sub
Private Sub Form_Timer()
DoCmd.OpenForm "frmAndonXT1"
DoCmd.close acForm, "frmAndonXT"
Call SetProcessWorkingSetSize(GetCurrentProcess(), -1, -1)
End Sub
frmAndonXT和frmAndonXT1来回切换,frmAndonXT1的对象和frmAndonXT是完全一样的,我本来是做计时器时间到再打开它自己的,不行,才做了一个窗体frmAndonXT1,对象和frmAndonXT一样的!
|
|