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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

changing font color for poritons of text field for a single record

Status
Not open for further replies.

itauditor

Technical User
Jan 8, 2001
16
US
Is there a way to change the font color on a single record for changes made to the text field (to track changes in form from year to year.) I coded the onchange event for a field and it did change, but it changed the whole field for every record. I just want a portion of the field changed and for only that record (I would settle for only that record, if this is even possible.) An alternative would be just to format the font as I type in the form, but this does not seem possible...Your help is greatly apprciated.
 
You can't format only a part of the text in a normal text box. You could use a RichText control, which allows internal formatting, but the standard version of Access doesn't provide one, so you'd have to get the control from somewhere else, and obtain redistribution rights for it if you intend to distribute your application.

But I warn you: changing a RichText control's formatting from code is an intricate operation. You'll have to really study the documentation, and expect to work at it for a while.
 
If you provide a field in your table that could indicate if changes have occured then you can highlight text or backcolor for this record when you display it. Send me an email if you would like a copy of a sample db with this item covered.

John A. Gilman
gms@uslink.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top