Showing posts with label How to Program. Show all posts
Showing posts with label How to Program. Show all posts

Thursday, May 22, 2014

Min (x) must be less than or equal to max (-1) in a Range object.

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 + "'")



Search This Blog