Why can't I find AddItem in an ADP?

C

Chris Omernik

I am hoping that someone can tell me what I am doing wrong
here. I am trying to add items to a list box at runtime
after generating a recordset, but Additem doesn't appear
as a choice for me in Access!

In my Access 2000 ADP, after I create the recordset, I am
trying to populate the list box like this, but Additem
isn't available. Do I have a missing reference, or am I
having a problem adding the list box because it already
thinks it was bound at design time? At design time, I do
have control source and row source set to null, but should
rowsource type also be set to null?

Do Until rs.EOF
lstMyListBox.Additem
rs.MoveNext
Loop
 

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

Top