A
al
hi, I have a table that contain a field "amount" its
datatype is numeric(18,4) in sql server 2000
I have created a Datagrid, when I edit a record, I get an
error like this one
BC30456: 'Numeric' is not a member of 'System.Data.DbType'.
Line 213: dbParam_amount.ParameterName = "@amount"
Line 214: dbParam_amount.Value = amount.text
Line 215: dbParam_amount.DbType =
System.Data.DbType.Numeric
Line 216: dbCommand.Parameters.Add(dbParam_amount)
You can find the complete code at
http://aalhussein.webhostme.com/Q/dg_parameter_dt.htm
I am not sure if vb.net contain numerice datatype. Do I
have to use other datatype or what.
thanks
Al
datatype is numeric(18,4) in sql server 2000
I have created a Datagrid, when I edit a record, I get an
error like this one
BC30456: 'Numeric' is not a member of 'System.Data.DbType'.
Line 213: dbParam_amount.ParameterName = "@amount"
Line 214: dbParam_amount.Value = amount.text
Line 215: dbParam_amount.DbType =
System.Data.DbType.Numeric
Line 216: dbCommand.Parameters.Add(dbParam_amount)
You can find the complete code at
http://aalhussein.webhostme.com/Q/dg_parameter_dt.htm
I am not sure if vb.net contain numerice datatype. Do I
have to use other datatype or what.
thanks
Al