Oct 9, 2006 #1 marcusmco IS-IT--Management Oct 9, 2006 30 AU Hello, I am trying the following in an expression for a textbox: =IIf(Fields!FFOSV1.Value Like 'F20%' ,"bla bla","") The value of FFOSV1 is F20 but it doesn't work. I get a syntax error. Does anyone know what I am doing wrong? Cheers, Marcus
Hello, I am trying the following in an expression for a textbox: =IIf(Fields!FFOSV1.Value Like 'F20%' ,"bla bla","") The value of FFOSV1 is F20 but it doesn't work. I get a syntax error. Does anyone know what I am doing wrong? Cheers, Marcus
Oct 9, 2006 #2 qztm51 Programmer Apr 30, 2002 10 US I've never tried to use "Like", or maybe it's the single quotes...anyway... You could try something like: =IIF(left(Fields!FFOSV1.Value, 3) = "F20", "bla bla", "") Hope this helps, Upvote 0 Downvote
I've never tried to use "Like", or maybe it's the single quotes...anyway... You could try something like: =IIF(left(Fields!FFOSV1.Value, 3) = "F20", "bla bla", "") Hope this helps,
Oct 10, 2006 Thread starter #3 marcusmco IS-IT--Management Oct 9, 2006 30 AU What a great workaround! Works perfectly fine. Thanks! Upvote 0 Downvote