add a data to a column in a listbox

A

anush

hi
i need to copy from a textbox to a column of a selected item...i tried this code
Me.lstList.Column(1,1) = Me.txtQty.Valu

but the value always comes as null..

can somebody please help as to where i am going wrong..
or how to use AddItem to add to a specific column in a row.

thanks
 
D

Douglas J. Steele

Access only supports bound listboxes. You can't easily do what you're trying
to.
 
D

Dave

You could make a temp table that could act as the source of the list box
when you want to add items from your text box to the list box
you could add the data to the table abd then requery the list box.
 
A

anush

thank you so much..its a good solution , but i am suprised that Access doesnt support this....there is no way to assign contents of another control to a listbox column..


----- Dave wrote: ----

You could make a temp table that could act as the source of the list bo
when you want to add items from your text box to the list bo
you could add the data to the table abd then requery the list box
 

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