show the top of listbox

ledgerr.rob

Registered User.
Local time
Yesterday, 20:34
Joined
Jun 3, 2012
Messages
68
I have a bound listbox that is generated through a query on a form.

My goal is when a new record is added and the form moves to the 'new blank form' to move the display of the listbox to the first record. Not necessarily select the first record, just move to the top of the list.

Right now when a new record is added the list box will keep displaying the same location (maybe 30 records down) as was displaying in the last record entered.

I've tried lstBox.requery but not working...Is there a property to move the display of the listbox or is this a code thing, which would be fine too? It seems like a simple thing...?

I appreciate any comments
rob
 
Hi
try

me!lstBox.listindex =0
me!lstBox=-1
 

Users who are viewing this thread

Back
Top Bottom