[AccessD] Highlighting Select Words in a Large Text Field

Brad Marks BradM at blackforestltd.com
Mon Oct 1 11:33:29 CDT 2012


Shamil,

Thanks for the info.

I plan to continue to experiment with this area.

My current method of generating HTML and initiating Internet Explorer works, but it would be nice to not have to use the browser.

Thanks again,
Brad
 

-----Original Message-----
From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Salakhetdinov Shamil
Sent: Monday, October 01, 2012 10:21 AM
To: Access Developers discussion and problem solving
Subject: Re: [AccessD] Highlighting Select Words in a Large Text Field

Hi Brad --

Sorry, I missed that you have to preview/print report - then you can assign your HTML text to .ControlSource property of an unbound TextBox with .TextFormat property equal to "Rich Text". (Of course you can also use textboxes bound to field(s) of a (temp) table keeping your generated HTML). 

Try

="<html><body><p>Hello, <font size=""5"" color=""FF0000"">W<font>orld !</p></body></html>"

Thank you.

-- Shamil


Mon, 01 Oct 2012 00:11:37 +0400 от Salakhetdinov Shamil <mcp2004 at mail.ru>:
>	
>
>
	
	
>
		
		
			
>Brad,
>
>
Set "Rich Text" TextBox's .Value property equal to your HTML text and see how that will impress your relatives :)
>
>
Thank you.
>
>
-- Shamil
>
>
>
Sun, 30 Sep 2012 14:35:58 -0500 от "Brad Marks" <BradM at blackforestltd.com>:
>
>	
>
>
>
>
>
	
>
	
>
>
>
		
>
		
>
			
>
>Shamil,
>
>
>
>
>
Because the field is coming from a database in a purchased package, I cannot control how the data is stored.
>
>
>
>
>
If I used a TextBox control with the property set to "Rich Text", I am not sure how I could change the text to highlight the selected word(s).  Maybe there is a way to do this, but I could not find an example.
>
>
>
>
>
Thanks,
>
>
>
Brad 
>
>
>
>
>
-----Original Message-----
>
>
>
From: accessd-bounces at databaseadvisors.com on behalf of Salakhetdinov Shamil
>
>
>
Sent: Sun 9/30/2012 2:28 PM
>
>
>
To: Access Developers discussion and problem solving
>
>
>
Subject: Re: [AccessD] Highlighting Select Words in a Large Text Field
>
>
>
 
>
>
>
Hi Brad --
>
>
>
>
>
Why not use (unbound) TextBox control with its Text Format property set to "Rich Text"?
>
>
>
>
>
Thank you.
>
>
>
>
>
-- Shamil
>
>
> <<< skipped >>>
-- 
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




More information about the AccessD mailing list