Question about Coding an Outlook Form

  • Thread starter Thread starter Blue
  • Start date Start date
B

Blue

Hello All,

I'm trying to make one of my textboxes visible only if a certain option button is selected. Currently I have the textbox set to hidden in the properties...I just don't know how to script this event in outlook...I thought something like this would work:

If optSpecial1 = True Then
txtSpecial.Visible = True
End If

But it didn't or maybe I'm missing something...So if anyone can lead me to the right direction that I would appreiciate it...Thank you in advance

Blue
 
But it didn't or maybe I'm missing something...So if anyone can lead
me to the right direction that I would appreiciate it...Thank you in
advance
You can only refer to standard form properties by name. Any other
object, like controls, you have to explicitly find by starting from the
page collection, then the controls collection, and then use .value to
get the value of the checkbox. Www.slipstick.com has a page about
referencing controls. Go there and search for it.

Hollis D. Paul [MVP - Outlook]
(e-mail address removed)
Using Virtual Access 4.52 build 277 (32-bit), Windows 2000 build 2600
http://search.support.microsoft.com/kb/c.asp?FR=0&SD=TECH&LN=EN-US

Mukilteo, WA USA
 
The event depends on whether the option button is bound to an Outlook
property. It could be the item's PropertyChange or CustomPropertyChange
event or the control's Click event. See
http://www.outlookcode.com/d/propsyntax.htm

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Hello All,

I'm trying to make one of my textboxes visible only if a certain option
button is selected. Currently I have the textbox set to hidden in the
properties...I just don't know how to script this event in outlook...I
thought something like this would work:

If optSpecial1 = True Then
txtSpecial.Visible = True
End If

But it didn't or maybe I'm missing something...So if anyone can lead me to
the right direction that I would appreiciate it...Thank you in advance

Blue
 
Back
Top