I have two option buttons - optYes and optNo. The user can select one. Is there a way to select one of the options using code depending on the value of a variable? I would want optYes to be selected if the variable PRStatus = "Y". If PRStatus = "N", optNo is selected.
If not, can I do this with a check box or another control?
It should look something like this:
Thanks
If not, can I do this with a check box or another control?
It should look something like this:
Code:
If PRStatus = "Y" Then
[optYes is true/selected]
[optNo is false/not selected]
ElseIf PRStatus = "N" Then
[optNo is true/selected]
[optYes is false/not selected]
End If
Thanks