I have a variable, and then the following code :
Code: Select all
IIF(DataSource1.DrvLicEndorsed=="1","Yes","No")
But when I try to run the report in the designer, I keep getting Cannot implicitly convert type 'object' to 'string'. An explicit conversion exists.
I've tried the following variations, and none works
Code: Select all
IIF(DataSource1.DrvLicEndorsed=="1","Yes","No")
IIF(DataSource1.DrvLicEndorsed==1,"Yes","No")
IIF(DataSource1.DrvLicEndorsed="1","Yes","No")
IIF(DataSource1.DrvLicEndorsed=1,"Yes","No")
{IIF(DataSource1.DrvLicEndorsed=="1","Yes","No")}
{IIF(DataSource1.DrvLicEndorsed==1,"Yes","No")}
{IIF(DataSource1.DrvLicEndorsed="1","Yes","No")}
{IIF(DataSource1.DrvLicEndorsed=1,"Yes","No")}
{IIF(DataSource1.Pnt1=="1","Yes"," ")}
Pnt1 is also an integer on my other report..