我在access数据库中的字段的类型是长整形,在使用参数的时候:
 com.Parameters.Add("@fRealityPrice", OleDbType.Integer)
 com.Parameters("@fRealityPrice").Value = CType(e.Item.Cells(0).FindControl("TextBoxfRealityPrice"), TextBox).Text
不对,改:
com.Parameters("@fRealityPrice").Value = ctype(CType(e.Item.Cells(0).FindControl("TextBoxfRealityPrice"), TextBox).Text,Integer)
不对,改:
然后我在系统中查询出来的字段类型是:Decimal,然后用:
 com.Parameters.Add("@fRealityPrice", OleDbType.Decimal)
com.Parameters("@fRealityPrice").Value = ctype(CType(e.Item.Cells(0).FindControl("TextBoxfRealityPrice"), TextBox).Text,Decimal)
统统都是系统提示错误:"标准表达式中数据类型不匹配。" 究竟该用什么东西?