Full Version: Select Last Item In A List box
UtterAccess Discussion Forums > Microsoft® Access > Access Forms
wkalo
I Have A List Box Its Filled Automatically By A Query,
is there a way to enforce selecting a specific record,
Larry Larsen
Hi
Try:
CODE
Me.YourLstboxName = Me.YourLstboxName.Column(0, Me.YourLstboxName.ListCount - 1)

thumbup.gif
wkalo
Thank You Very Much
Above Code Forces Selection To The LAst Record In The List Box

One More Query !
Can I Change The Color Of The Selection Bar,
By Default Its Black,
Without Changing the Back Color Of The List Box

Thank You In Advance
Larry Larsen
Hi
Sorry no..
thumbup.gif
wkalo
Thank You
Larry Larsen
Hi
If you would like to try Candace Tripp has an alternative option which does include colour when trying to mimic the control (listbox)..
Check it out: Colour List Box
QUOTE
This demonstrates how to use a subform as a "faux" list box to simulate colored rows.

HTH's
thumbup.gif
wkalo
Thank You I Will Check It Out
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.