As per the comments to the post, OP had written code
If TextBox1.Text = "" Then
TextBox1.Text = 0
End If
If TextBox2.Text = "" Then
TextBox2.Text = 0
End If
I.e. they were assigning a numeric 0 to a string.
Changing the code to
If TextBox1.Text = "" Then
TextBox1.Text = "0"
End If
If TextBox2.Text = "" Then
TextBox2.Text = "0"
End If
solved the problem