You need to double up the quote mark: SET VAR vPDFFileName = (SRPL(.vPDFFileName, '''', '''''', 0)) -- Larry
________________________________ From: Bill Owens <[email protected]> To: RBASE-L Mailing List <[email protected]> Sent: Fri, March 4, 2011 12:32:21 PM Subject: [RBASE-L] - EMAIL PDF We have an application where we create a PDF file and email The file contains first name lastname.pdf If there is an apostrophe in the name ex: James O’Connor cannot create PDF If name = James Oconnor then PDF is created Any suggestions will be appreciated. Bill

