Thingol
Technical User
- Jan 2, 2002
- 169
Hi there,
I want to create a query in which the field [gender] is evaluated (it can have three values: "Male", "Female" or "Male/Female"). I want the query to show "Sir" if the value is "Male", "Madam" if the value is "Female" and "Sir/Madam" if the value is "Male/Female".
I have been trying all sorts of things with IIF statements, but I keep getting syntax errors, is there any easier way I can do this?
Thanks a lot.
Best regards,
Martijn Senden.
In the Beginning there was nothing, which exploded.
--Terry Pratchett, Lords and Ladies--
I want to create a query in which the field [gender] is evaluated (it can have three values: "Male", "Female" or "Male/Female"). I want the query to show "Sir" if the value is "Male", "Madam" if the value is "Female" and "Sir/Madam" if the value is "Male/Female".
I have been trying all sorts of things with IIF statements, but I keep getting syntax errors, is there any easier way I can do this?
Thanks a lot.
Best regards,
Martijn Senden.
In the Beginning there was nothing, which exploded.
--Terry Pratchett, Lords and Ladies--