I have four option button on a form and when checked they have a value of "TRUE" and "FALSE" when they don't. I need the TRUE and FALSE value to convert to LOYAL and NOTLOYAL. The code I wrote is not working, any suggestions will be highly appreciated.
The TxtLoyal value works fine, it's the TxtPreLoyal, TxtPostLoyal, TxtPreNotLoyal and TxtPostNotLoyal I am having problems with
Michael
Code:
If OptPreLoyal.Value = True And OptPostLoyal.Value = True Then TxtLoyal.Value = "BLOCK"
If OptPreLoyal.Value = True And OptPostLoyal.Value = True Then TxtPreLoyal.Value = "LOYAL" And TxtPostLoyal.Value = "NOT LOYAL"
If OptPreNotLoyal.Value = True And OptPostNotLoyal.Value = True Then TxtLoyal.Value = "BLOCK"
If OptPreNotLoyal.Value = True And OptPostNotLoyal.Value = True Then TxtPreNotLoyal.Value = "NOT LOYAL" And TxtPostNotLoyal.Value = "NOT LOYAL"
If OptPreLoyal.Value = True And OptPostNotLoyal.Value = True Then TxtLoyal.Value = "DEFECTOR"
If OptPreLoyal.Value = True And OptPostNotLoyal.Value = True Then TxtPreLoyal.Value = "LOYAL" And TxtPostNotLoyal.Value = "NOT LOYAL"
If OptPreNotLoyal.Value = True And OptPostLoyal.Value = True Then TxtLoyal.Value = "CONVERSION"
If OptPreNotLoyal.Value = True And OptPostLoyal.Value = True Then TxtPreNotLoyal.Value = "NOT LOYAL" And TxtPostLoyal.Value = "NOT LOYAL"
The TxtLoyal value works fine, it's the TxtPreLoyal, TxtPostLoyal, TxtPreNotLoyal and TxtPostNotLoyal I am having problems with
Michael