MackenziePhilli
5 years agoQrew Trainee
Limit Office Choice on Address
I have a project table that has a choice for office and the project address. Depending on the input of address I want it to display a message if the project office and the address do not align. I tried making a large if statement that if the address was one of the towns in boston, to show boston, and then I would make a form rule to display a message off of that. This doesnt seem to work. Is there a different way to utilize the address city field?
Code for if statement:
If([Project Address: City]= "Allston","Boston",
If([Project Address: City]= "Back Bay","Boston",
If([Project Address: City]= "Bay Village","Boston",
If([Project Address: City]= "Beacon Hill","Boston",
If([Project Address: City]= "Brighton","Boston",
If([Project Address: City]= "Charlestown","Boston",
If([Project Address: City]= "Chinatown","Boston",
If([Project Address: City]= "Dorchester","Boston",
If([Project Address: City]= "Downtown","Boston",
If([Project Address: City]= "East Boston","Boston",
If([Project Address: City]= "Fenway","Boston",
If([Project Address: City]= "Harbor Islands","Boston",
If([Project Address: City]= "Hyde Park","Boston",
If([Project Address: City]= "Jamaica Plain","Boston",
If([Project Address: City]= "Leather District","Boston",
If([Project Address: City]= "Longwood Medical Area",
If([Project Address: City]= "Mattapan","Boston",
If([Project Address: City]= "Mission Hill","Boston",
If([Project Address: City]= "North End","Boston",
If([Project Address: City]= "Roslindale","Boston",
If([Project Address: City]= "Roxbury","Boston",
If([Project Address: City]= "South Boston","Boston",
If([Project Address: City]= "South Boston Waterfront","Boston",
If([Project Address: City]= "South End","Boston",
If([Project Address: City]= "West End","Boston",
If([Project Address: City]= "West Roxbury","Boston",
If([Project Address: City]= "Cambridge","Boston",
If([Project Address: City]= "Sommerville","Boston",
If([Project Address: City]= "Boston","Boston","N/A")))))))))))))))))))))))))))))
------------------------------
Mackenzie Phillips
------------------------------
Code for if statement:
If([Project Address: City]= "Allston","Boston",
If([Project Address: City]= "Back Bay","Boston",
If([Project Address: City]= "Bay Village","Boston",
If([Project Address: City]= "Beacon Hill","Boston",
If([Project Address: City]= "Brighton","Boston",
If([Project Address: City]= "Charlestown","Boston",
If([Project Address: City]= "Chinatown","Boston",
If([Project Address: City]= "Dorchester","Boston",
If([Project Address: City]= "Downtown","Boston",
If([Project Address: City]= "East Boston","Boston",
If([Project Address: City]= "Fenway","Boston",
If([Project Address: City]= "Harbor Islands","Boston",
If([Project Address: City]= "Hyde Park","Boston",
If([Project Address: City]= "Jamaica Plain","Boston",
If([Project Address: City]= "Leather District","Boston",
If([Project Address: City]= "Longwood Medical Area",
If([Project Address: City]= "Mattapan","Boston",
If([Project Address: City]= "Mission Hill","Boston",
If([Project Address: City]= "North End","Boston",
If([Project Address: City]= "Roslindale","Boston",
If([Project Address: City]= "Roxbury","Boston",
If([Project Address: City]= "South Boston","Boston",
If([Project Address: City]= "South Boston Waterfront","Boston",
If([Project Address: City]= "South End","Boston",
If([Project Address: City]= "West End","Boston",
If([Project Address: City]= "West Roxbury","Boston",
If([Project Address: City]= "Cambridge","Boston",
If([Project Address: City]= "Sommerville","Boston",
If([Project Address: City]= "Boston","Boston","N/A")))))))))))))))))))))))))))))
------------------------------
Mackenzie Phillips
------------------------------