Today i faced the error Min (4) must be less than or equal to max (-1) in a Range object. while doing query on data table.
dtFinal.select("Person_ID=" + strPersonID )
After investigation, I find out that column person_id in datatable is string type. simply use single quotes in above statement
resolve the issue.
dtFinal.select("Person_ID='" + strPersonID + "'")
dtFinal.select("Person_ID=" + strPersonID )
After investigation, I find out that column person_id in datatable is string type. simply use single quotes in above statement
resolve the issue.
dtFinal.select("Person_ID='" + strPersonID + "'")
No comments:
Post a Comment