Hello Chris,Firstly, if you haven't already, make sure you are using proper indentation on your code book (although you probably did in your tool).You also need to call the user variable in the expression. Use the % signs around the variable. In your case I think you'll use %Start_Date%. It's also a good idea to use str(%Start_Date%) to convert whatever the user provides to a string.I've also attached a screenshot if it helps.Let me know how it goes!
ERROR 000539: Error running expression: x(str(Start_Date)) <type 'exceptions.NameError'>: name 'Start_Date' is not definedFailed to execute (CalcQueryWhere).
x(str(!Start_Date!))
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.