.SetParameterValue doesn't affect reports query

In my .frx report I have this query "select * from [Batch] where [BatchID] = @param1";

param1 has a default value as 1.
PxXIXAg.png

This is part of my report.cs file http://pastebin.com/Nae01pJx

This is the result I get KaaSJbJ.png

Any ideas?

Thanks!

Comments

  • StarkStark Syria
    edited 12:11AM
    Try to change datatype in Query Wizard to "Int32" or "String".

Leave a Comment