Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / July 2007

Tip: Looking for answers? Try searching our database.

Paragraph marks

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
trainsteve - 19 Jul 2007 22:10 GMT
I have a field labeled Messages in my database. The way data is entered has
been switched recently, and so now data is entered via a website. I noticed
that when I ran a query on the data, the entries that have been made by the
website the data has this <P> at the beginning of each paragraph and </P> at
the end.

How do I get rid of these?

Thanks in advance for any help.
Larry Linson - 21 Jul 2007 06:11 GMT
>I have a field labeled Messages in my database. The way data is entered has
> been switched recently, and so now data is entered via a website. I
[quoted text clipped - 4 lines]
> at
> the end.

Those are the HTML markup for Paragraph beginning and ending.

Check Help for the the Replace function.

To clean the data in the Table: Use it in an Update Query, with something
like
Replace(Replace([yourdatafield],"<P>",""),"</P>","") in the Update To:
line.

Or, don't bother to clean the data, just access it via a Query with this
field defined as .
newdatafield: Replace(Replace([yourdatafield],"<P>",""),"</P>","").

For "newdatafield", substitute the Name of the Field you want to be used in
the Query for the "cleansed" data; for "yourdatafield", substitute the Name
of the Field in the Table that sometimes has the "<P>" or "</P>" added.  If
the Field does not have either, it will not be affected.

Larry Linson
Microsoft Access MVP
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.