Make box control not visible based on condition

  • Thread starter Thread starter magmike
  • Start date Start date
M

magmike

I have created my own tabs using boxes and subforms. However, I would
like one of the "tabs" or the box that makes the tab (as well as the
unassociated label) not visible on the event that a particular field
is empty ([Notes]).

I've played around with this in the OnCurrent event, but have been
unsuccessful. Any ideas?

Thanks in advance!

magmike
 
You could try setting the control based on the value of the particular field
as follows:

me.tab.visible=not isnull(me.particular field) '-where particular field =
your fieldname

you should also place this in the after update of the field (particular field)

Set the default settings of the tab and box to not visible.

hth
 
You could try setting the control based on the value of the particular field
as follows:

me.tab.visible=not isnull(me.particular field) '-where particular field =
your fieldname

you should also place this in the after update of the field (particular field)

Set the default settings of the tab and box to not visible.

hth
--
Maurice Ausum



magmike said:
I have created my own tabs using boxes and subforms. However, I would
like one of the "tabs" or the box that makes the tab (as well as the
unassociated label) not visible on the event that a particular field
is empty ([Notes]).
I've played around with this in the OnCurrent event, but have been
unsuccessful. Any ideas?
Thanks in advance!
magmike- Hide quoted text -

- Show quoted text -

Perfect, thanks! magmike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top