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

Selecting Very Last Item in List Box 1

Status
Not open for further replies.

alexbel

Technical User
Jun 27, 2004
77
0
0
US
Hi,

I was wondering if it was possible that when the form is open, it automatically highlights the very last record that is displayed in a list box on that form?


Thank you
 
How are ya alexbel . . . . .

In the [blue]OnLoad[/blue] event of the [blue]form or subform[/blue] where the listbox resides, try:
Code:
[blue]Me![purple][b]ListBoxName[/b][/purple].Selected(Me![purple][b]ListBoxName[/b][/purple].ListCount - 1) = True[/blue]

Calvin.gif
See Ya! . . . . . .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top