hiding label text

yoavchen

Registered User.
Local time
Today, 11:42
Joined
Jan 31, 2005
Messages
53
i want to make a condition that if an OLE object of mine is empty then the label won't be visible. (visible=no)

The reason i want it is that the ;label is placed inside the OLE object frame, and when i fill the ole object i want that the label will disappear
 
try this:

Code:
if isNull (me.olename) then
me.label.visible = false
else
me.label.visible = true
end if

replace olename and label, with the actual names of your ole object and label.
 
i did what you told me to, i put this code in the After update of the OLE object and it is not working.
 
If tried this putting the code in the afterupadte event of a combo box. So once i selected a record then it check to see it was null. I tried this for a text box and not an ole object so hopefully it will work you.

if Not isNull (me.olename) then
me.label.visible = false
else
me.label.visible = true
end if
 

Users who are viewing this thread

Back
Top Bottom