IIF with (chr(13))

G

Guest

Is it possible to put char code (Chr(13)) in an IIF statement. In a report I
am making I want to put one comment if the condition is true and two lines of
comments if the condition is false

thanks
 
G

Guest

I'm not sure if that what you mean, but to join two comments with a new line
try

IIf(Condition = True, [Comment1] , [Comment1] & Chr(13) & Chr(10) &
[Comment2])
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top