Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Forms / August 2004

Tip: Looking for answers? Try searching our database.

Radio Buttons won't fill in on custom form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Matt Overbee - 26 Aug 2004 04:07 GMT
Hello,

I have a user that is using a custom form. There are about 4 or 5 sets
of Radio button selections on the form. 3 of them have code that runs
when they're changed, using the Item_CustomPropertyChange function.
They are used to make a frame of fields appear and disappear using the
Visible property.

When she tries to use the form, the 3 with the code behind them won't
fill in and allow her to select one. The rest of them will though.

This is only happening to her, and she has OfficeXP running an XP Pro
machine.

Below is the code for the 3 radio button changes:

Sub Item_CustomPropertyChange(ByVal FieldName)
   ItemChanged = True
   Select Case FieldName
       Case "SendTo"
           If Item.UserProperties.Find("SendTo").Value = 0 Then
               Item.To = "MP Design Requests"
           Else
               Item.To = "NY Design Requests"
           End If

       Case "CustStatus"
           Set myPage = Item.GetInspector.ModifiedFormPages("Design
Information")
           Set myNewCust = myPage.Controls("fraPotential")
           If Item.UserProperties.Find("CustStatus").Value = 1 Then
               myNewCust.Visible = True
           Else
               myNewCust.Visible = False
           End If

       Case "BookInc"
           Set myPage = Item.GetInspector.ModifiedFormPages("Design
Information")
           Set myBookInfo = myPage.Controls("fraBookInfo")
           If Item.UserProperties.Find("BookInc").Value = 0 Then
               myBookInfo.Visible = True
           Else
               myBookInfo.Visible = False
           End If
   End Select
End Sub

Any help here would be greatly appreciated.

Thanks in advance,
Matt
Sue Mosher [MVP-Outlook] - 28 Aug 2004 00:04 GMT
I'm afraid I don't understand what you mean by "fill in" with regard to
option buttons. Did you bind each set to the same Outlook property and
assign each button within the set a different value? See
http://www.outlookcode.com/d/formcontrols.htm

Signature

Sue Mosher, Outlook MVP
Author of
    Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx

> Hello,
>
[quoted text clipped - 48 lines]
> Thanks in advance,
> Matt
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.