PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook Form Programming Radio Buttons won't fill in on custom form

Reply

Radio Buttons won't fill in on custom form

 
Thread Tools Rate Thread
Old 26-08-2004, 04:07 AM   #1
Matt Overbee
Guest
 
Posts: n/a
Default Radio Buttons won't fill in on custom form


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
  Reply With Quote
Old 28-08-2004, 12:04 AM   #2
Sue Mosher [MVP-Outlook]
Guest
 
Posts: n/a
Default Re: Radio Buttons won't fill in on custom form

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

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


"Matt Overbee" <bee45@aol.com> wrote in message
news:2d8924d4.0408251907.7fccfdd6@posting.google.com...
> 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



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off