Highligt something in a listbox

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a lisbox that whose row source is from from a query. I would like
when someone opens the form that contains the listbox, the urgent things will
be to highlight something that is urgent, how do I do this?
 
I have a lisbox that whose row source is from from a query. I would like
when someone opens the form that contains the listbox, the urgent things will
be to highlight something that is urgent, how do I do this?

You cannot format individual lines in a list box.
If you need something like that, create a small continuous sub-form,
use conditional formatting, and you can highlight as much as you want.
 
If the values are unique and you specify the value of the bound field in
code, it will highlight that row. This only works on unbound listboxes, when
the multi-select property is set to None.

Sub Form_Current()
Me.lstListBox = 3
End Sub

You can use a multi-select when the list box is bound to field in the
underlying query, but then you must open to the specific record that
contains the values that you want to display.
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads
http://www.datastrat.com
http://www.mvps.org/access
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

update listbox 2
Evaluate ListBox Value 8
ListBox help 1
Listbox query 3
Access Cannot select items in listbox 1
Last Item of Listbox not getting displayed 1
Requery listbox 1
Listbox Scroll Bar 1

Back
Top