I have the following python input. The user will enter a value with a dash always. E.g. 2015-0001
Var1 = raw_input("Enter the number with dash: ") arcpy.CalculateField_management("all_reports.gdb\\joined", "YearNo", Var1, "PYTHON_9.3", "")
"YearNo" is a text field. If I do "print type(Var1)" it tells me that it is a string.
When I look at my YearNo field is shows 1972. It is doing a subtraction of the numbers rather than keeping a string together.
Is there a way around this?