Option Group

EmmaJane

Registered User.
Local time
Today, 23:22
Joined
Nov 5, 2003
Messages
214
Okay I'm sure this is straight forward and believe me I have searched for an answer but I think my problem is that I don't know what to search for!

I have a form and on this form I have a list box with three choices, Pending, Accepted and Rejected... What I would like is when they choice Rejected that an option group appears and they must check one of these.

Any help would be greatly appreciated :)
 
Code:
If Me.MyListBox = "Rejected" Then
    Me.MyGroup.Visible = True
Else
    Me.MyGroup.Visible = False
End If
 
Thanks for this I have had a look but I'm not entirely sure were to put it :confused:
 
In the AfterUpdate event of your listbox.
 
you can try to put it on the AfterUpdate of your listbox
 
EmmaJane said:
Thanks for this I have had a look but I'm not entirely sure were to put it :confused:
On the listbox change event:
Code:
[COLOR=Red]Private Sub MyListBox_Change()[/COLOR]
If Me.MyListBox = "Rejected" Then
    Me.MyGroup.Visible = True
Else
    Me.MyGroup.Visible = False
End If
[COLOR=Red]End Sub[/COLOR]
On the form create an option group called MyGroup and make it invisible.
 
Okay got it now thanks for the help was putting it there but had spelt something wrong, must remember always check the obvious first! :o
 

Users who are viewing this thread

Back
Top Bottom