I have a listbox that will only show the header row and the first
record regardless of how many records are returned. I can find no code
or settings that account for this.
Details:
- The list box is on the main form
- The rowsource for the listbox is updated from a subform with the
following code:
With Parent!lbo_SQL
.RowSource = str_tempSQL
Parent.txt_RecordCount = .ListCount - 1 'subtract 1 to
account for the header row
End With
- the .ListCount will show the correct number of rows that should be
returned by the SQL, but the listbox will only show the header row and
the first record.
- str_tempSQL is a valid SQL string that I build in this porcedure
I've checked everything I can think of. Any suggestions? I know this
has got to be something simple that I'm just overlooking.