Free Advertising Forums | Free Advertising Board | Post Free Ads Forum | Free Advertising Forums Directory | Best Free Advertising Methods | Advertising Forums

Free Advertising Forums | Free Advertising Board | Post Free Ads Forum | Free Advertising Forums Directory | Best Free Advertising Methods | Advertising Forums (http://www.freeadvertisingzone.com/index.php)
-   FFA's and FFA Blasters Directory (http://www.freeadvertisingzone.com/forumdisplay.php?f=62)
-   -   Windows 7 Home Premium Roll-your-own “traffic lig (http://www.freeadvertisingzone.com/showthread.php?t=1096396)

04-22-2011 07:16 PM

Windows 7 Home Premium Roll-your-own “traffic lig
 
Posted by Chris Downs, writer, Access IW Content Team Here’s a great tip suggested by Clint Covington. Using an expression and a Rich Text text box,Office 2007 Download, you can create a traffic light indicator in an Access form or report,Microsoft Office 2010 Key, as in the following illustrations: First, add a text box to the form or report, and set the following properties: Property Setting Text Format Rich Text Locked True Enabled False Then, enter the following expression into the Control Source property: ="<font face=Webdings size=1 color=" & IIf([Status]="Active","#ED1C24", IIf([Status]="Resolved","#FFF20C", IIf([Status]="Closed","#22B14C"))) & ">n </font>" Edit the items in bold text so that they refer to field names and values in your database. This expression creates an HTML string that the Rich Text text box can interpret. In short, it specifies the letter “n”, which in the Webdings font corresponds to the circular icon. The IIf functions set the icon’s color to red,Office Enterprise 2007, yellow, or green, respectively. You can nest more IIf statements together to accommodate more values—check out this color reference to obtain the Hex values of more varied colors. Note: Instead of entering the expression in the Control Source property of the text box, you can also create a calculated field in a query, and then bind the text box to that field. For example, in the Field row of the query design grid, enter: StatusLight: "<font face=Webdings size=1 color=" & IIf([Status]="Active",Windows 7 Professional,"#ED1C24", IIf([Status]="Resolved","#FFF20C",Windows 7 Home Premium, IIf([Status]="Closed","#22B14C"))) & ">n </font>" And then bind the Rich Text text box to the StatusLight field. <div


All times are GMT. The time now is 12:45 PM.

Powered by vBulletin Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Free Advertising Forums | Free Advertising Message Boards | Post Free Ads Forum