DataBlock & Microsoft Access Like Query Error and Solution

0 views
Skip to first unread message

Mustafa OZCAN

unread,
Jun 1, 2008, 9:32:50 AM6/1/08
to DataBlock discussions
There no return result by using Like query in DataBlock.
I can inspect this. And find a solution.

You must change DataBlock Source Code :

In AccessQueryCriteriaGenerator.cs

this line

case CriteriaOperator.Like:
field.fieldValue = "*" +
conditions[i].Values[0].ToString() + "*";

change this

case CriteriaOperator.Like:
field.fieldValue = "%" +
conditions[i].Values[0].ToString() + "%";

and change "*" char to "%" in other like variation's.

finally rebuild DataBlock and use it perfectly...
Reply all
Reply to author
Forward
0 new messages