G
Guest
I have several custom fields on an appointment form. I would like to insert text into the body portion of the appointment, based on the value of a few of these fields. If I use the following code
Body = "Client - " & Item.UserProperties("Client") it works fine. If I try to make it conditional with
Body = "Client - " & IIf(Item.UserProperties("Client") = "Sue Offender","Sue","Other") I get a Type Mismatch error. I would like to use the IIF function with Text or Number or Yes/No type fields and am getting this error with any of them. How can I correct my code
Thanks - Judy Scofiel
Body = "Client - " & Item.UserProperties("Client") it works fine. If I try to make it conditional with
Body = "Client - " & IIf(Item.UserProperties("Client") = "Sue Offender","Sue","Other") I get a Type Mismatch error. I would like to use the IIF function with Text or Number or Yes/No type fields and am getting this error with any of them. How can I correct my code
Thanks - Judy Scofiel