It is "plate = frm.op1.Value" Seems like it is not able to assign thevalue from the option box to the boolean variable plate.