Private Sub cmdCalc_Click()
Dim Commission_Percent As Double
Dim Total_Commission As Double
Dim Sales_Price As Integer
Dim Highest_Commission as Integer
Sales_Price = txtSales_Price.Text
Total_Commission = Sales_Price + Commission_Percent
If Sales_Price < Total_Commission Then
[Total_Commission = Highest_Commission]
End If
lblTotal_Commission .Caption = Total_Commission
End Sub