i using c# executereader
method read data access db. have string field in access table , in query converting bool using below code:
iif(isxyz = 'true',cbool(1=1),cbool(1=0)) isxyz
above statement returning int16
value me in data reader. per
it's supposed return bool
, missing here?
what missing here?
i don't think you're missing anything. have recreated issue using system.data.oledb
, system.data.odbc
, , in access using dao.recordset
. seems cbool
return boolean
in vba statement, return integer
in access sql statement. :(
Comments
Post a Comment