473,320 Members | 1,991 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Format selected text in RTF Memo field in MS Access 2007

5
Hello,

I’m trying to format only selected text in an RTF Memo field in Access 2007



I’m able to copy selected text in a Memo field to the Windows clipboard with following code:

Private Sub Memo_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)



DoCmd.RunCommand acCmdCopy



End Sub



But I would like to know if there is anyway that I can format that selected text.

I’ve tried the below:

Me.Memo.FontSize = 15



But this formats the whole field. How can I change the FontSize (color, weight etc.) of only the selected text?



Greetings,

ACF
Jun 28 '07 #1
2 5046
ADezii
8,834 Expert 8TB
Hello,

I’m trying to format only selected text in an RTF Memo field in Access 2007



I’m able to copy selected text in a Memo field to the Windows clipboard with following code:

Private Sub Memo_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)



DoCmd.RunCommand acCmdCopy



End Sub



But I would like to know if there is anyway that I can format that selected text.

I’ve tried the below:

Me.Memo.FontSize = 15



But this formats the whole field. How can I change the FontSize (color, weight etc.) of only the selected text?



Greetings,

ACF
Try applying the SelStart and SelLength Properties to the specific selected Text, then apply the formatting.
Jul 5 '07 #2
missinglinq
3,532 Expert 2GB
Also, be aware that, in previous versions of Access, any type of formatting of memo fields causes them to be truncated to 255 characters when used in queries! Spell checker also corrupts rich text fields if they contain carriage returns! I would backup the db before trying any of this, then run it thru any queries you're apt to use to look at the results!
Jul 5 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Alfredo Agosti | last post by:
Hi folks, I have an Access 2000 db with a memo field. Into the memo field I put text with bold attributes, URL etc etc What I need to to is converting the rich text contained into the memo...
6
by: Shyguy | last post by:
I want to create two buttons on a form. One would allow the user to Copy the contents of the current records memo field, the other would allow them to print. I set up a report based on the memo...
13
by: MLH | last post by:
I have a form with two controls: !! - combo box !! - text box A button on the form tries to run this SQL when clicked... INSERT INTO BodyMsgsSent (ToWhom, BodyText) SELECT DISTINCTROW !! AS...
4
by: intl04 | last post by:
I have a memo field that is included in some Access reports I created. Is there some way for the memo field to display nicely formatted text, with line breaks between paragraphs? Or is it necessary...
9
by: RMC | last post by:
Hello, I'm looking for a way to parse/format a memo field within a report. The Access 2000 database (application) has an equipment table that holds a memo field. Within the report, the memo...
2
by: bobdydd | last post by:
Hi All In the plan text version of a Memo field you can easily add a date by pressing Ctrl+Colon which makes life easy for the end user. However, if the Memo field is set to the Rich Text...
16
by: Neil | last post by:
I posted a few days ago that it seems to me that the Access 2007 rich text feature does not support: a) full text justification; b) programmatic manipulation. I was hoping that someone might...
4
by: ACF | last post by:
Hello, I'm programming an application in MS Access 2003 / 2007 and would like to know how I can copy highlighted text to the windows clipboard? I am now using a statement in combination with...
2
by: Roger | last post by:
I've got two tables in sql2005 which have an 'ntext' field when I linked the first table in access97 last week using an odbc data source the access-field type was 'memo' when I link the 2nd...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.