unselect item form list box

G

gisela

Hi,
I have a list box, when the form is loaded no item of the
list is selected. but if one item is choosen, when moving
with the navigation buttons in order to add a new record
for this new record the list box still has the last item
selected selected. how can I unselect all the items
selected in the listbox any time the user is moving with
the navigation buttons?

thx,
gisela
 
A

Allen Browne

If this is not a multi-select listbox, you can set its value to Null.

To do that whenever you move record, use the form's Current event procedure,
e.g.:

Private Sub Form_Current
Me.MyListBox = Null
End Sub
 

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

Top