listbox problems

M

mission2java

Sorry messed up....


my question I have access 2k2...I use a listbox to add an item int
another list box on a click of a button:

visual basic code:
Me.lstInvitedAttendes.AddItem Me.lstAttendes.Column(0, Item)




Works fine on my machine...on a machine with office 2000, this cod
errors out.

How can I add an item to a list box without an error
 
B

Brendan Reynolds

I think AddItem was new in Access 2002. In earlier versions you could base
the rowsource on a table (directly or via a query or SQL statement) and add
the new record to the table, base the rowsource on a value list, and append
new text to the value list, or use a call-back function. There's an example
of using a call-back function at the following URL ...

http://www.mvps.org/access/forms/frm0049.htm
 

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