Solved

DB: Insert bold text in a Memo field

Posted on 1997-09-17
3
395 Views
Last Modified: 2006-11-17
Hi!
   I have a Memo field in a DB, which will contain from several lines to 2-3 pages of text, and it will have some words in bold, others in italic, and so.
My question is if that memo field can handle that directly. If not, what would be a solution?

Thanks in advance!
0
Comment
Question by:taco
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 3

Expert Comment

by:rmichels
ID: 1435228
The memo field in the database does not carry any font information.  It is up to the control displaying the memo field to determine how the text appears.


0
 
LVL 9

Accepted Solution

by:
cymbolic earned 50 total points
ID: 1435229
You can put your own control information in a memo field to indicate bold, underline, etc. Many wod processors maintain this information by using ascii values outside of the normal display set to indicate special formatting. For instance, they may use values below ascii 32 (the space) or above 127 (the extended character set).  Then, when the data is read the text in between the special markers are formatted differently, and themarkers are removed.  When the data is saved again, the markers are replaced.  Ever looked at a word doc with a hex viewer?  There is a ton of extra formatting there, so you can se that your task will not be an easy one.   FInding a control that you can use to display and read the mixed formating as well will be a problem.  Your best bet would be to ole control MS word.  BUt that means that all your users have to have it installed, and you can't break the MS OFFICE umbilical!
0
 

Author Comment

by:taco
ID: 1435230
A workaround for myself:
   Instead of using a Memo field, I use a binary field (OLE object), and I use a RichTextBox control.
   Then I insert directly RichTextBox.TextRTF into my binary field, and ... PERFECT.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month11 days, 12 hours left to enroll

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question