PaulBarter
MIS
Hi
I have a common subroutine which can be called from various points that I want to optionally update a status Label in a form only if it is loaded
ie I want to write code like
If Form2.Loaded Then
Form2.Label1 = "recalculating"
Else
' do nothing
End If
but of course .Loaded is not a property!
If I just refer to Form2.Label1 then Form2 will start loading - which I don't want.
I'm sure it must be simple, but can't figure it out except by setting a global variable when I load Form2
I have a common subroutine which can be called from various points that I want to optionally update a status Label in a form only if it is loaded
ie I want to write code like
If Form2.Loaded Then
Form2.Label1 = "recalculating"
Else
' do nothing
End If
but of course .Loaded is not a property!
If I just refer to Form2.Label1 then Form2 will start loading - which I don't want.
I'm sure it must be simple, but can't figure it out except by setting a global variable when I load Form2