justphilip2003
Registered User.
- Local time
- Today, 15:27
- Joined
- Mar 3, 2013
- Messages
- 30
I have a db with a Table PersonalT which has numeric values (1 to 5) in the field PoliticalPreference. In a Report I am attempting to use the codes (in Property Sheet field Control Source) to print an associated phrase. I have tried various code functions: Switch, Choose and Iff. When the Codes pass syntax check upon loading the report for execution a Message Box pops up with this message: "Enter Parameter Value". Why? Is there another property I need to fix? Here is my latest attempt:
=[Iif(PoliticalPreference=1, "Democrat", (Iif PoliticalPreference=2, "Independent”, (Iif PoliticalPreference=3, "Non Voter", (Iif PoliticalPreference=4, "Tea Party”, "Republican”))))]
Since this project is a learning tool, I do not wish to use a conversion Table since I already know how to do that. TIA :banghead
hil
=[Iif(PoliticalPreference=1, "Democrat", (Iif PoliticalPreference=2, "Independent”, (Iif PoliticalPreference=3, "Non Voter", (Iif PoliticalPreference=4, "Tea Party”, "Republican”))))]
Since this project is a learning tool, I do not wish to use a conversion Table since I already know how to do that. TIA :banghead