| re: Default selection in a listbox
Thanks Fons,
worked like a charm.
I observed another very interesting thing, when I tested my form. If
there is an empty column in the list box (meaning column count is one
more than actual columns SELECTed) the listbox starts making funny
things like only showing you part of all records. It took me at least
half a day to figure out whats wrong, because the statement in
"RowSource" was 100% correct.
Hoschi
"Fons Roelandt" <f.roelandt@zeelandnet.nl> wrote in message news:<3fa2b0e1$0$808$fb624cd1@news1.zeelandnet.nl> ...[color=blue]
> Hi Hoschi,
>
> I guess this should work it's air code but try using it if you want
>
> Private Sub Form_Load()
> ' Be sure to set *ALL* the strSQL vars before calling FillList
> strSQL9 = "Is NULL " & "OR Name1 LIKE '*')"
> strSQL10 = "Is NULL " & "OR Name2 LIKE '*') "
> End Sub
>
> Private Sub Form_Activate()
> Call FillList
> End Sub
>
> Leave the rest of the subs as you described them in your message
>
> NP! Fons[/color] |