> sid = "12345678' You started the string with a quote and ended it with an apostrophe. > Connection.Execute( The last character of this snippet is not a quote. This is a nice Unicode quote, the one Word will insert into your documents. Same with the one at the end of this line. -- Matma Rex 2011/8/16 7stud -- <bbxx789_05ss / yahoo.com>: > \223 ocatal = 147 decimal = 'o' with circumflex in extended ASCII > > It sounds like something isn't happy that it is being fed a non-ascii > character. > > -- > Posted via http://www.ruby-forum.com/. > >