Sub bEnter_Click
myNumber =txtNum.Text
If transactFlag= False Then
If myNumber.Length <> 10 Then
Msgbox("Incorrect number of characters, please enter your number again","Loyalty Program")
Exit Sub
Else
lblDisplay.Text="Enter transaction amount and click enter"
lblDisplay.TextColor=Colors.Red
transactFlag=True
txtNum.Text=""
txtNum.INPUT_TYPE_DECIMAL_NUMBERS
txtNum.Color=Colors.LightGray
End If ' this is line 221
Else
transaction(myNumber)
End If
txtNum.Text = ""
End Sub