15-12-12, 03:16 PM
السلام عليكم شباب
عندي هذا الكود
وحصلت هذا الخطأ
[COLOR="#FF0000"]Conversion from type 'DBNull' to type 'Integer' is not valid.
[/COLOR]
كيف اتخلص من ال DB null
عندي هذا الكود
PHP كود :
Dim a As Integer
Dim sum As New OleDbCommand("select sum(profit-disacount ) from sales ", con)
con.Open()
a = sum.ExecuteScalar
con.Close()
TextBox31.Text = a
وحصلت هذا الخطأ
[COLOR="#FF0000"]Conversion from type 'DBNull' to type 'Integer' is not valid.
[/COLOR]
كيف اتخلص من ال DB null