Solved

DB: Insert bold text in a Memo field

Posted on 1997-09-17
3
390 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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

752 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