{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil Times New Roman;}{\f1\fnil\fcharset0 Times New Roman;}}
{\colortbl ;\red0\green0\blue0;}
\viewkind4\uc1\pard\cf1\f0\fs22\par
\cf0\lang2057\b\f1\fs24\par
\par
2nd Period - (5 minutes)\cf1\lang1033\b0\f0\fs22\par
}
Public Function ConvVarRTFtoText( _
ByVal varRTF As Variant, _
Optional booSingleRun As Boolean) _
As String
' Converts, if possible, RTF formatted variant to plain text using
' RTF ActiveX control.
' Null as varRTF returns zero length string.
' When finished, Rich Text object is removed if booSingleRun is True.
Dim strRTF As String
Dim strTmp As String
On Error GoTo Err_ConvVarRTFtoText
If Not IsNull(varRTF) Then
strTmp = CStr(varRTF)
strRTF = ConvRTFtoText(strTmp, booSingleRun)
End If
ConvVarRTFtoText = strRTF
Exit_ConvVarRTFtoText:
Exit Function
Err_ConvVarRTFtoText:
Resume Exit_ConvVarRTFtoText
End Function
/gustav
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 Times New Roman;}}
\viewkind4\uc1\pard\lang2057\b\f0\fs16\par
\fs24 Please record Long Case:\b0\fs20\par
\fs16\par
\b\fs24 1st Period - Candidate & Patient (10 minutes)\lang1033\b0\fs20\par
}
From this I want to extract 'Please record Long Case:' and '1st period - Candidate & Patient (10 minutes)'Please record Long Case:So I cannot tell why it shouldn't work.
1st Period - Candidate & Patient (10 minutes)
It has been a while since I've used the Rich Text format in Access database, but that does not look like the format I remember. Where is this data coming from? Was it created in Access?