akins4lyfe
Programmer
Hi,
I have a form containing 5 option buttons, to check for series of specific validities, 1 command button, and a text box to display validity notes.
I would like a user to select an option by checking the option buttons, then click on the command button, and place a note inside the text box available on my form. An option must to be selected, it's compulsory.
Depending on the option selected by the user, there are different notes available for each options.
Now, here is the problem, the first option works fine, when selected, and the command button clicked to generate a note. But the rest are not working. I have posted my code below, for any suggestions, critics & corrections pls.
If Me.OptionValid90.Value = True Then
Me.txtNote "Welcome on board"
ElseIf Me.OptionValid28.Value = True Then
Me.txtNote = "Valid for 28 days only"
ElseIf Me.OptionInvalid.Value = True Then
Me.txtNote = "Your subscription is Invalid"
ElseIf Me.OptionInvalidV6.Value = True Then
Me.txtNote = "V6 Validity"
ElseIf Me.OptionManagerAuth.Value = True Then
Me.txtNote = "Authorisation Required"
Else
Me.txtNote = ""
Thank you all.
I have a form containing 5 option buttons, to check for series of specific validities, 1 command button, and a text box to display validity notes.
I would like a user to select an option by checking the option buttons, then click on the command button, and place a note inside the text box available on my form. An option must to be selected, it's compulsory.
Depending on the option selected by the user, there are different notes available for each options.
Now, here is the problem, the first option works fine, when selected, and the command button clicked to generate a note. But the rest are not working. I have posted my code below, for any suggestions, critics & corrections pls.
If Me.OptionValid90.Value = True Then
Me.txtNote "Welcome on board"
ElseIf Me.OptionValid28.Value = True Then
Me.txtNote = "Valid for 28 days only"
ElseIf Me.OptionInvalid.Value = True Then
Me.txtNote = "Your subscription is Invalid"
ElseIf Me.OptionInvalidV6.Value = True Then
Me.txtNote = "V6 Validity"
ElseIf Me.OptionManagerAuth.Value = True Then
Me.txtNote = "Authorisation Required"
Else
Me.txtNote = ""
Thank you all.