Re: highlight top record in list box - after a delete
May have found the solution:
Question: is the ListBox 0 based or 1 based - i.e. Selected(0) or (1)
Tried it - found out that 0 picks the top record.
Added 4 records, deleted all the way down to 1.
' lst_FedAPDID name of list box
If Me.lst_FedAPDID.ListCount >= 0 Then
Me.lst_FedAPDID.Selected(1) = True ' this does the trick
Call lst_FedAPDID_AfterUpdate ' runs some cool code
Call lst_FedAPDID_Click ' refreshes bottom part of form
' guess it is time to figure out what to do if No records are left
Last edited by Rx_; 05-25-2010 at 10:19 AM.
Reason: hit enter too soon