Switch() function results in #Error

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a field with a single character code in it and want to display the
corresponding word on a report. When I put the following in a textbox Control
Source param. I get #Error displayed on the report. Any ideas?

=Switch([RecType] = "D", "Deceased",[RecType] = "S", "Suspended",[RecType] =
"P', "Prospect")
 
If that's an actual copy-and-paste of what you have, you've got a single
quote after the P in [RecType] = "P'
 
bkaufman said:
I have a field with a single character code in it and want to display the
corresponding word on a report. When I put the following in a textbox Control
Source param. I get #Error displayed on the report. Any ideas?

=Switch([RecType] = "D", "Deceased",[RecType] = "S", "Suspended",[RecType] =
"P', "Prospect")


Also, make sure that the text box is **not** named RecType
 

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

Back
Top