Hi im really new to VB and am stuck on an IF statement, heres my code:
If TextBox12.Text >= 105.01 Then
TextBox16.Text = TextBox12.Text - 105.01 * 0.128
ElseIf TextBox12.Text < 105.01 Then
TextBox16.Text = "Not NI Eligible"
When i debug it the error System.InvalidCastException is displayed four times for this bit of code.
textbox12.text is defined as a decimal within this Private sub buttonclick is that makes a difference
Any help on this would be appreciated