3

I'm getting the following error when trying to calculate a field:

enter image description here

I'm just trying to calculate all the selected records to equal a value I specify, a simple two-letter zoning code. So the field calculator expression is simply field = value (I'm not trying to make it equal another field or use a mathematical espression). The field is string type, length 10, which should be long enough for two letters. The field does not have a domain assigned to it. I get the same error whether I'm in an editing session or not. This should be easy - what's going on?

2
  • Could you provide screenshots of both involved field's properties?
    – Louis
    Commented May 16, 2017 at 20:00
  • 1
    I figured it out. I simply needed to add double quotes around the specified value. Still, the error message was misleading and confusing me. Commented May 16, 2017 at 20:02

1 Answer 1

5

If it's a string value (which it sounds like it is since you said two-LETTER zoning code), you need to put quotation marks around the value like: field = "value".

1
  • Yeah, that was kinda stupid of me to overlook something like that...thanks. Commented May 16, 2017 at 20:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.