I am trying to get an average of some row totals. I know how to do that, but my average depends on what value is selected in my listbox(lbxwkid)
Conversion from string "" to type 'Double' is not valid. for this line
ElseIf lbxWkid.SelectedValue().ToString > 0 Then
HEre is my code the tithecountsum is also a double.
Conversion from string "" to type 'Double' is not valid. for this line
ElseIf lbxWkid.SelectedValue().ToString > 0 Then
HEre is my code the tithecountsum is also a double.
Code:
ElseIf lbxWkid.SelectedValue().ToString > 0 Then
ElseIf lbxWkid.SelectedValue().ToString > 0 Then
Dim lbxValue As Double = Convert.ToDouble(lbxWkid.SelectedValue)
TitheAvg = TitheCountSum / lbxValue
lblAvg.Text = String.Format("{0:c}", TitheAvg)