pauljkeenan
Programmer
Hi Guys
Could anyone help me with the syntax for this expression Im using on a report. The textbox field is supposed to display yes or no depending on the text in another field. So on my report I have the fields listed like name, job, fee, currency simply listed from a table. The last textbox field should display a "yes" if [currency] is YTL and "no" if [currency] is not. sounds easy? I thought so, and it probably is.
Well I decided to check the access help first of all for some examples and I found exactly what I was looking for. So I copied and pasted what I found and added it as the control source for the field. Here's the code
=IIf([Currency] = "YTL", "Yes", "No")
and here's the microsft example which I copied from
=IIf([Confirmed] = "Yes", "Order Confirmed", "Order Not Confirmed")
as soon as I try to come out of design view I get an error saying the syntax is wrong but unfortunately its very vague.
anybody?
any help is very much appreciated
Could anyone help me with the syntax for this expression Im using on a report. The textbox field is supposed to display yes or no depending on the text in another field. So on my report I have the fields listed like name, job, fee, currency simply listed from a table. The last textbox field should display a "yes" if [currency] is YTL and "no" if [currency] is not. sounds easy? I thought so, and it probably is.
Well I decided to check the access help first of all for some examples and I found exactly what I was looking for. So I copied and pasted what I found and added it as the control source for the field. Here's the code
=IIf([Currency] = "YTL", "Yes", "No")
and here's the microsft example which I copied from
=IIf([Confirmed] = "Yes", "Order Confirmed", "Order Not Confirmed")
as soon as I try to come out of design view I get an error saying the syntax is wrong but unfortunately its very vague.
anybody?
any help is very much appreciated