Filtering

DayWalker

Regular
Joined
Jul 9, 2003
Messages
51
Can anyone perhaps tell me why i am getting this error:

An unhandled exception of type 'System.Data.EvaluateException' occurred in system.data.dll

Additional information: Cannot perform '=' operation on System.Decimal and System.String.

In this code:

With dsDataset.Tables("DataTable")
.DefaultView.RowFilter = "Field = '" & txtSerialNum.Text & "%'"
If .DefaultView.Count = 0 Then
MessageBox.Show("The Number does not exsist", "No Data", MessageBoxButtons.OK, MessageBoxIcon.Information)
End If
dgCallList.DataSource = .DefaultView
End With
 
Back
Top