Re: Removing html tags from field
From: Graham R Seach (gseach_at_NOSPAMpacificdb.com.au)
Date: 07/29/04
- Next message: Graham R Seach: "Re: Removing html tags from field"
- Previous message: Laurie Eaton: "RE: Dynamic Filter"
- In reply to: JA: "Removing html tags from field"
- Next in thread: Graham R Seach: "Re: Removing html tags from field"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 29 Jul 2004 15:56:44 +1000
Public Function KillHTML(sText As String) As String
'Kills HTML tags
Dim iLeft As Integer
Dim iRight As Integer
Dim sTmp As String
iLeft = InStr(1, sText, "<")
While iLeft > 0
iRight = InStr(iLeft + 1, sText, ">")
sTmp = Mid(sText, iLeft, iRight - iLeft + 1)
sText = Mid(sText, 1, iLeft - 1) & Mid(sText, iLeft + Len(sTmp))
iLeft = InStr(1, sText, "<")
Wend
KillHTML = sText
End Function
Regards,
Graham R Seach
Microsoft Access MVP
Sydney, Australia
Microsoft Access 2003 VBA Programmer's Reference
http://www.wiley.com/WileyCDA/WileyTitle/productCd-0764559036.html
"JA" <jarmour@kc.rr.com> wrote in message
news:68%Nc.56136$vN3.6971@twister.rdc-kc.rr.com...
> First, thank you all who answered my previous questions. And now I have
> another.
>
> Is there a way to remove html tags from a memo field? Like a way to remove
> the "<" and the ">" and anything in between them. And maybe replace them
> with a space? There would most likely be more than one tag per record.
>
> Thanks again!
>
> JA
>
>
- Next message: Graham R Seach: "Re: Removing html tags from field"
- Previous message: Laurie Eaton: "RE: Dynamic Filter"
- In reply to: JA: "Removing html tags from field"
- Next in thread: Graham R Seach: "Re: Removing html tags from field"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|