Forum Moderators: open
On top of this, when the record in the field 'Label' starts with a number, I want the record in the corresponding 'Alphanumeric' field to say "0-9", instead of the first character.
Is this possible and how would I implement it?
Thanks!
- Grab the LABEL field data
- Make a variable that's a substring of the LABEL field lets call it LABELSUBSTRING
- Check to see if the LABELSUBSTRING isNumeric
if it's a number print 0-9 to the ALPHANUM field
else print alpha to the ALPHANUM field
I hope that helps.
UPDATE [RECORD LABELS] SET [Alphanumeric] = IIf(Asc(Left([Label],1))<58 And Asc(Left([Label],1))>47,'0-9',Left([Label],1)) all labels with numbers will have the string '0-9' in the field [Alphanumeric], all others (including special charaters) will have the first character
> ADD: no variables needed...