Highlighting the selected item in a combo box by making the item displayed in Bold characters.

Highlighting the selected item in a combo box by making the item displayed in Bold characters.

Post by doyapor » Thu, 20 Jan 2005 22:16:51


This is a multi-part message in MIME format.




Friends,
Is there a way of highlighting any particular item in a combo box by making it bold. For instance, I have the following names in my table in the Emp_Nm field:
1. Aston Villa
2. Villareal
3. Real Sociedad
4. Real Madrid
5. Athletico Madrid
The names are typed in the exact order as shown above.

I have a form which has a drop down combo box. Whenever, the user starts typing, say, Real Sociedad, the combo box, as it should, drop down and the name of Real Sociedad should be marked in bold.

Can anyone help me in this direction. Also, please let me know whether a similar process would hold good for list boxes.

--
Your suggestions and advice are always highly appreciated and prized.
Thank you.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"><BASE
href="file://C:\Program Files\Common Files\Microsoft Shared\Stationery\">
<STYLE>BODY {
BACKGROUND-POSITION: left top; MARGIN-TOP: 0em; FONT-WEIGHT: normal; FONT-SIZE: 12pt; MARGIN-BOTTOM: 0em; MARGIN-LEFT: 4em; COLOR: #427d64; BACKGROUND-REPEAT: repeat-y; FONT-FAMILY: "Comic Sans MS"; BACKGROUND-COLOR: #fffffd
}
P.msoNormal {
BACKGROUND-POSITION: left top; MARGIN-TOP: 0em; FONT-WEIGHT: normal; FONT-SIZE: 12pt; MARGIN-BOTTOM: 0em; MARGIN-LEFT: 4em; COLOR: #427d64; BACKGROUND-REPEAT: repeat-y; FONT-FAMILY: "Comic Sans MS"; BACKGROUND-COLOR: #fffffd
}
LI.msoNormal {
BACKGROUND-POSITION: left top; MARGIN-TOP: 0em; FONT-WEIGHT: normal; FONT-SIZE: 12pt; MARGIN-BOTTOM: 0em; MARGIN-LEFT: 4em; COLOR: #427d64; BACKGROUND-REPEAT: repeat-y; FONT-FAMILY: "Comic Sans MS"; BACKGROUND-COLOR: #fffffd
}
</STYLE>

<META content="MSHTML 6.00.2900.2523" name=GENERATOR></HEAD>
<BODY id=ridBody bgColor=#ffffff
background=cid:00c101c4fe29$23a4e5a0$4f1ffea9@ACER>
<DIV>Friends,</DIV>
<DIV>Is there a way of highlighting any particular item in a combo box by making
it bold. For instance, I have the following names in my table in the Emp_Nm
field:</DIV>
<DIV>1. Aston Villa</DIV>
<DIV>2. Villareal</DIV>
<DIV>3. Real Sociedad</DIV>
<DIV>4. Real Madrid</DIV>
<DIV>5. Athletico Madrid</DIV>
<DIV>The names are typed in the exact order as shown above.</DIV>
<DIV> </DIV>
<DIV>I have a form which has a drop down combo box. Whenever, the user starts
typing, say, Real Sociedad, the combo box, as it should, drop down and the name
of Real Sociedad should be marked in bold.</DIV>
<DIV> </DIV>
<DIV>Can anyone help me in this direction. Also, please let me know whether a
similar process would hold good for list boxes.</DIV>
<DIV><BR>-- <BR>Your suggestions and advice are always highly appreciated and
prized.<BR>Thank you.<BR></DIV>  </BODY></HTML>
 
 
 

Highlighting the selected item in a combo box by making the item displayed in Bold characters.

Post by Arvin Meye » Thu, 20 Jan 2005 23:49:49

Please refrain from using HTML or attachments (your stationery) in the
newsgroups. It bloats the messages and makes it more difficult (and
expensive) for those with dialup connections or who pay for their actual
connection time.

To answer your question, there are no special formatting options for
selected text in Access combo or list boxes. Stephen Lebans has done some
work with color coding rows in a list box that may be of help. It is in
Access 97, but should convert to later versions:

http://www.yqcomputer.com/
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access Downloads
http://www.yqcomputer.com/
http://www.yqcomputer.com/



Friends,
Is there a way of highlighting any particular item in a combo box by making
it bold. For instance, I have the following names in my table in the Emp_Nm
field:
1. Aston Villa
2. Villareal
3. Real Sociedad
4. Real Madrid
5. Athletico Madrid
The names are typed in the exact order as shown above.

I have a form which has a drop down combo box. Whenever, the user starts
typing, say, Real Sociedad, the combo box, as it should, drop down and the
name of Real Sociedad should be marked in bold.

Can anyone help me in this direction. Also, please let me know whether a
similar process would hold good for list boxes.

--
Your suggestions and advice are always highly appreciated and prized.
Thank you.