Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
msawyercke
Creator
Creator

Apostrophe in Load Script

Hello,

 

I have the following Load statement:

Pick(Match("Bus. Unit", '010', '050'), 'Toms ', 'Sallys') as "Bus. Unit"

I would like to insert an apostrophe in the statement so that the Business Unit in the Sheet reads "Tom's" and "Sally's", but I get an error message and the load script fails.  I've read some other similar posts, but can't seem to find the correct solution.

Thanks to anyone who could help!

Mike

1 Solution

Accepted Solutions
dplr-rn
Partner - Master III
Partner - Master III

you will have to use ascii value for the '
change your code to
'Tom'&chr(39)&'s'

View solution in original post

3 Replies
dplr-rn
Partner - Master III
Partner - Master III

you will have to use ascii value for the '
change your code to
'Tom'&chr(39)&'s'
msawyercke
Creator
Creator
Author

Thank you! Correct solution!
julian
Contributor II
Contributor II

Good stuff! I've looked all over for this.