Marshall Brooks
Member
- Local time
- Yesterday, 23:47
- Joined
- Feb 28, 2023
- Messages
- 720
Actually, I found another glitch, but I only notice it at home with the slower network connection ...
@Josef P. said in Reply #10 to turn the timer on in the FormCurrent Event, then in the timer event to turn the timer off and load the subforms.
What is happening is every time the form is current, the timer event fires again - so every time I go to a new record, I see a progress bar and my subforms load (actually, the second subform loads too quickly to be visible, but it is being reloaded).
I need the timer to run only on the initial load.
I tried the following, but it didn't seem to change anything:
If necessary, I can go back to loading my subforms with the main form and I'll still have the initial progress bar, but I liked the late subform loading idea, if it can be made to work.
@Josef P. said in Reply #10 to turn the timer on in the FormCurrent Event, then in the timer event to turn the timer off and load the subforms.
What is happening is every time the form is current, the timer event fires again - so every time I go to a new record, I see a progress bar and my subforms load (actually, the second subform loads too quickly to be visible, but it is being reloaded).
I need the timer to run only on the initial load.
I tried the following, but it didn't seem to change anything:
Code:
Private Sub Form_Current()
Dim FirstLoad As Integer
If FirstLoad = 0 Then
FirstLoad = 1
Me.TimerInterval = 1
Unload ufProgress ' Kill progress bar
Else
Me.TimerInterval = 0 ' Timer Off
End If
End Sub
If necessary, I can go back to loading my subforms with the main form and I'll still have the initial progress bar, but I liked the late subform loading idea, if it can be made to work.