Solved

DB: Insert bold text in a Memo field

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
change vba from autofit to 13.5 width? 4 29
Visual Basic Excel Formatting error 4 108
Macro: print each sheet to pdf using ExportAsFixedFormat 11 48
MsgBox 4 62
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

832 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