How to check if a subform is visable

robertbwainwright

Registered User.
Local time
Today, 17:23
Joined
May 2, 2012
Messages
62
I'm trying to check if a subform is visable. The following code is just test code so I can get a result. I keep getting an error on the .IsVisible section. Any Suggestions?


If datTimePlus15 <= datCurTime And [frmBarstockAreaSubForm].IsVisible Then
MsgBox datTimePlus15 & " " & datCurTime
datTimePlus15 = DateAdd("n", 1, Now)
End If

Thank you,
Robert
 
You can use the Visible = True instead.
Code:
[SIZE=1]If datTimePlus15 <= datCurTime And [frmBarstockAreaSubForm].Visible = True Then[/SIZE]
 
Tell us why you are checking if a form is "visible"? And if it is, then what, and it isn't what?
 

Users who are viewing this thread

Back
Top Bottom