ListBox Problem

  • Thread starter Thread starter DS
  • Start date Start date
D

DS

I have three listboxes on a form whenever I click o the first one,
related info comes up in the second, so on and so forth. The problem is
that whenever I click on the first one (or the second) the records come
up an the first one is always selected (Just appears that way, because
it returns no value). I tried this code thats below and it works fine
untill it runs a second time. then it locks up the next listbox and you
can't select nothing. So how can I select a record in the first listbox
without having a record selected automatically in the nex listbox?
Thanks
DS






Dim I As Integer

For I = 0 To Me.List40.ListCount - 1
Me.List40.Selected(I) = False
Next I
 
DS said:
I have three listboxes on a form whenever I click o the first one,
related info comes up in the second, so on and so forth. The problem is
that whenever I click on the first one (or the second) the records come
up an the first one is always selected (Just appears that way, because
it returns no value). I tried this code thats below and it works fine
untill it runs a second time. then it locks up the next listbox and you
can't select nothing. So how can I select a record in the first listbox
without having a record selected automatically in the nex listbox?
Thanks
DS






Dim I As Integer

For I = 0 To Me.List40.ListCount - 1
Me.List40.Selected(I) = False
Next I
Problem Fixed

Me.List40.Value = Null

Thanks
DS
 

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

Similar Threads


Back
Top