Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formating within a control 1

Status
Not open for further replies.

scotttom

IS-IT--Management
Mar 5, 2002
143
US
Hello,

I have a need to highlight a certain portion of a string within a control.

Basically I have a piece of genetic code 1000 characters long and I need to highlight a variable chunk of that based on records in a table.

Something like this:


XXXXXXXXXXXXXXXXX[Highlight]XXXXXXXXXXXXXXXXXXXXXXXXXX[/highlight]XXXXXXXXXXXXXXXXXXXX

I can figure out which characters to highlight with no problem, but what I don't know is how can I do it so it shows up on an access report.

Anyone know how to accomplish this?

Thanks in advance for any help.

Scott
 
Take a look at the onFormat event of the detail section. You should be able to utilize the control presenting the data and change what it presents.

Just a thought.

"If it's stupid but works, it isn't stupid."
-Murphy's Military Laws
 
You can only do that with certain controls. Not doable in a standard textbox. However, you can do that in a richtext box if your version of Access supports it. Choose more controls and look for microsoft richtext box.
 
2007 aye? Thats kinda what I figured. Might be tim eto move off of the old 2002 version.

Thanks for your time.

Scott
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top