Try this:
Code:
Dim objDoc, objFile, objFSO, objWord, strFile, strHTML, myfile
Dim iWordCount As Long
Dim i
Dim sWord As String
Dim sline As String
myfile = CurrentProject.Path & "\rptEndowmentRecipients.rtf"
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objWord = CreateObject("Word.Application")
With objWord
.Visible = True
.Documents.Open myfile
Set objDoc = .ActiveDocument
iWordCount = objDoc.Words.Count
For i = 1 To iWordCount - 2
sWord = objDoc.Words(i)
If Len(Trim(objDoc.Words(i))) = 0 Then
objDoc.Words(i) = Trim(objDoc.Words(i))
End If
Next
objDoc.Save
objDoc.Close
.Quit
End With
this code assumes the rtf file is in the same folder as the access application