Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Removing RTF Tags on Export
Brian Pearson 
     
5 years ago
I have a linked table from a SQL database that has data stored in a field (DETAILS) with RTF/HTML tags preceding the actual text. I have no trouble working with the data while in Access because I am changing the Text type to Rich Text in my queries so that I do not see the tags but when I export the table to .csv (for import into another external database), the tags remain. Can someone help me with this? Thank You!
Richard Rost  @Reply  
          
5 years ago
Hi Brian. Welcome. There is a function called PlainText() that you can use to strip rich text tags from a string. So in your query:

X: PlainText(MyRichTextField)

And that ought to do it. I've actually got this somewhere on my list for an upcoming TechHelp video.
Brian Pearson OP  @Reply  
     
5 years ago
Gosh - so simple and I really should have known that command. Thank so much!
Richard Rost  @Reply  
          
5 years ago
It's not a widely known function. In fact, I've never even covered it in one of my classes... which is why it's on the TechHelp list. I'll probably just make a Fast Tip video out of it. :)
Richard Rost  @Reply  
          
5 years ago
Brian Pearson OP  @Reply  
     
4 years ago
Hi Richard - So this all works fine inside of Access, but when I Export the Query to a .csv file, the results include the RTF tags all over again. Any idea how to get around that? Thanks.
Brian Pearson OP  @Reply  
     
4 years ago
I found a way around the problem... I used PlainText in a Make Table query which then stored it correctly and allow the Export correctly without the RTF tags but any other insight you want to offer is still welcomed.
Richard Rost  @Reply  
          
4 years ago
That's probably the most elegant solution I'd think of.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/6/2026 5:41:56 AM. PLT: 1s