Just an FYI, so in most Functions where a true column name is required (Searches, Sortby, Filters etc)
and you did not realize putting dashes or spaces in a name would cause you SO MUCH GRIEF LATER..
To a Name like XXX - RRRRR YYYY is not working with a function where the column name is
supposed to be in "" like "Title"
So to find the ACTUAL NAME that the list uses to ACCESS the DATA, you can bring up the
LIST in a Browser and then use F12 and search the code of a list for them.
The name choices in a list are important...
So when someone decides to use silly stuff like
"XXX - RRRRRR"
You have to then put in "XXX_x0020__x002d__x0020_RRRRRR" in order to use it as a SOLID PROGRAM COLUMN NAME.
So the x0020 is a space and the x002d is a Dash...
Moral of the story is to use UNDERSCORES for SPACES and don't use DASHES as its just bad practice, but
you like me may be working on a list you did not create. Happy Programming.