Hello,
I have a form with a control named "cPDF". On the current event of the form I have the following code:
It shows the control cPDF with the set condition. My problem is when opening the form, the code does not run soon enough to hide/unhide the control.
I tried the same code on different events, onopen, onActivate, with no results.
Any thoughts?
thanks
I have a form with a control named "cPDF". On the current event of the form I have the following code:
Code:
If InStr(Me.path1, ".pdf") > 0 Then
Me.cPDF.Visible = True
Else
Me.cPDF.Visible = False
End If
It shows the control cPDF with the set condition. My problem is when opening the form, the code does not run soon enough to hide/unhide the control.
I tried the same code on different events, onopen, onActivate, with no results.
Any thoughts?
thanks