Hi guys,
(This is somewhat of a revamped version of a previous question I posted. I had mistaken the RTF formatting as something to do with Collation)
I have a text field(notes) in SQL Server that is storing the data with all of the rtf formats.
{\rtf1\ansi\deff0{\fonttbl{\f0\fnil\fcharset0 MS Shell Dlg 2;}}
\viewkind4\uc1\pard\lang1033\f0\fs17 test comments are here
I need to pull the notes into an Excel spreadsheet without all of the rtf info (I want to end up with "test comments are here" from the above example), but haven't had much luck. I tried using the Mid function when getting the data over to excel to omit this data, but it is not consistently the same length throughout all of my records. I don't think a substring function in my SQL statement would work either because I the rtf data doesn't always ends with "fs17". Is there a way to strip out/convert the rtf info in a SQL query ? If not, is there a way to do this once I get the data into Excel/VBA code?
Any ideas for a solution would be appreciated. I have googled my rear off this morning and haven't found much that will work =-(
Thanks!
Nic
(This is somewhat of a revamped version of a previous question I posted. I had mistaken the RTF formatting as something to do with Collation)
I have a text field(notes) in SQL Server that is storing the data with all of the rtf formats.
{\rtf1\ansi\deff0{\fonttbl{\f0\fnil\fcharset0 MS Shell Dlg 2;}}
\viewkind4\uc1\pard\lang1033\f0\fs17 test comments are here
I need to pull the notes into an Excel spreadsheet without all of the rtf info (I want to end up with "test comments are here" from the above example), but haven't had much luck. I tried using the Mid function when getting the data over to excel to omit this data, but it is not consistently the same length throughout all of my records. I don't think a substring function in my SQL statement would work either because I the rtf data doesn't always ends with "fs17". Is there a way to strip out/convert the rtf info in a SQL query ? If not, is there a way to do this once I get the data into Excel/VBA code?
Any ideas for a solution would be appreciated. I have googled my rear off this morning and haven't found much that will work =-(
Thanks!
Nic