How to make a label appear on form based on option button selection

  • Thread starter Thread starter alaxmen
  • Start date Start date
A

alaxmen

I would like to know how to make a label appear on a form based on a
option buttion selection on a particular record. I want the word
CANCELLED to appear on the form for any records that the user clicks on
an option button. Can someone help me?

Thanks.
 
I would like to know how to make a label appear on a form based on a
option buttion selection on a particular record. I want the word
CANCELLED to appear on the form for any records that the user clicks on
an option button. Can someone help me?

Thanks.

Put the button on the form; set its Visible property to No. In the
Form's Current event and in the afterupdate event of this option
button, set its Visible property to Yes appropriately:

Private Sub optLiveCancel_AfterUpdate()
Me!lblCancelled.Visible = (Me!optLiveCancel = 2)
End Sub

replacing 2 with the value corresponding to "Cancelled" of course.

John W. Vinson[MVP]
 

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

Back
Top