How do I get a warning message to appear if one of two option buttons within a frame are not selected?

I have tried with optionbutton.value = True but I can't get this to work.
Many thanks,
Hywel
Manchester UK