I have 2 radio buttons on my form which are both different forms of tax. I have a label which has the amount of money i need to multiply the tax by depending on which radio button the user chooses. 1 radio button has tax of 16.5% and the other 11.5% so it means I have to multiply the label by either 1.165 or 1.115 but I havent got a clue on how to code it. Please help

Re: Coding for radio buttons 80 80

Use if-else statement :

If Option1.Value = True Then
    ' Your code if user select radio button 1
ElseIf Option2.Value = True Then
    ' Your code if user select radio button 2
End If
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.