The bottom line is that you can't use a recordset as the rowsource for a
list box in Access 2000, therefore you need to choose one of the other
methods available for getting data into the rows of a list box. If I
remember correctly, listboxes didn't have an AddItem method in Access 2000
either, right? So there are only three ways - a value list, a table/query,
or a call-back function.
If the recordset contains a relatively small number of rows, you could use a
value list - just loop through the recordset and concatenate values to a
semi-colon delimited string, and assign that string to the RowSource
property. Don't forget to change the RowSourceType property to Value List if
you go that route.
--
Brendan Reynolds (MVP)
Jason said:
Hi Marshall,
How would you do it?
Marshall Barton said:
I don't think so, but I don't use ADO so I won't swear to
it.
Ought to be a way for you to munge things around and use the
RowSource though.
--
Marsh
MVP [MS Access]
Jason wrote:
There is no recordset property in a2k. Can it be done in another way?
Jason wrote:
I'm using access 2000. how can i see if there such a property?
Check the Object Browser (VBA window, View menu):
Library: Access
Search: ListBox
I don't have A2K so I can't check it for you.