For c = 1 To rs7.Fields.count - 1 '
If rs7.RecordCount > 0 Then
strCurrTxt = ""
strCurrTxt = rs7.Fields(c) ' DO not need first field do not use b-1
MsgBox "1: " & strCurrTxt
strCurrTxt = Replace(strCurrTxt, "&", " and ", 1)
MsgBox "2: " & strCurrTxt
'If InStr(1, strCurrTxt, "&") > 0 Then
'msgbox " instring"
'strCurrTxt = Replace(strCurrTxt, "&", " and ", 1)
'End If
rs8.AddNew
rs8!Export = strCurrTxt
rs8.Update
MsgBox "3: " & rs8!Export
rs8.Bookmark = rs8.LastModified
Else
strCurrTxt = "NO TEXT FOUND"
msgbox "Break and check"
End If
'rs7.MoveNext
Next c
|