Make Option Box appear if button is selected?

T

TKM

I have several reports in my combo box and I would like my option box to
appear if a user selects a certain report that is in my cbo. I have two
reports that I would like it to be visible on if they select those reports.
How would I go about this?
 
A

Allen Browne

Use the AfterUpdate event procedure of the combo to set the Visible property
of the option group.
 
F

fredg

I have several reports in my combo box and I would like my option box to
appear if a user selects a certain report that is in my cbo. I have two
reports that I would like it to be visible on if they select those reports.
How would I go about this?

Set the Option Group Visible property to No.
Code the Combo Box AfterUpdate event:

If Me![ComboName] = "Report1" Or Me![ComboName] = "Report2" Then
Me![OptonGroupName].Visible = True
Else
Me![OptonGroupName].Visible = False
End If
 
T

TKM

Fredg,

Thank you very much! works perfectly!

fredg said:
I have several reports in my combo box and I would like my option box to
appear if a user selects a certain report that is in my cbo. I have two
reports that I would like it to be visible on if they select those reports.
How would I go about this?

Set the Option Group Visible property to No.
Code the Combo Box AfterUpdate event:

If Me![ComboName] = "Report1" Or Me![ComboName] = "Report2" Then
Me![OptonGroupName].Visible = True
Else
Me![OptonGroupName].Visible = False
End If
 

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

Top