ListBox Display Problems

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi guys,

I have a ListBox (TableQuery) which, say, selects 4 records from a table.

On the next search the system finds, say, 6 valid records from the same table.

However only the first 4 are displayed. The remaining two records ARE shown
on the screen but the values are blank (ie two empty lines).

I have tried all sorts of requeries without luck.

The only way I can get the data back into these two lines is by displaying
the Properties screen, then changing some value on the DATA tab.

Thanks in advance..

PeteA
 
If your listbox is loaded via a query then the query will have to change in
order to pull in different rows. Then a requery of the listbox should refresh
the contents.
What are you changing to make the missing rows display? It might help to
tell us.

Dorian
 
Thanks for the speedy reply Dorian,

If I change the following fields in the Property->Data tab then the ListBox
data is upated:
BoundColumn
DefaultValue
ValidationText
Enabled
Locked

I have tried all sorts of Requeries at different points without luck. I have
also tried Repaint, Recalc etc..

As I said before, the number of lines is correct, it just seems to only
display the first 4, the remainder are have no data (but the lines are
present).

If the list is sufficiently long to display the scroll-bars, then by
scrolling down, then back up again, the record data is then displayed.

As you suggest, I suspect this is a requery problem.

What is the last EVENT on a Form before it is displayed?
 
Back
Top