Problem while adding values to Listbox

kapil

Registered User.
Local time
Today, 19:43
Joined
Oct 4, 2006
Messages
17
Hi,

I have created a listbox with 5 columns. But i am not able to add values to it. The listbox.AddItem function only adds value to first column.. How do i add values to all the columns of a listbox.. I somehow have tried so many functions but have failed.
Please help me in it..

Thanking you,
Regards,
Kapil
 
First of all, you shouldn't post the question in more than one place as many of the forum faithful get a bit miffed (so expect some negative comments).

Second, the listbox in Access works differently than the listbox in VB6. In Access you just set the rowsource to a query, including as many columns as you want and by specifying the number of columns and column widths you can set them to be shown.
 
Hi,

sorry for the multiple replies.. I was confused on the part that under which forum does is come.. Wuld take care next time on..

I checked thru the RowSource Property.. But how do i do if in case i have to create the listbox dynamically.. Like whenever an event happens, i add a new row with 5 column values...
and am able to select a particular row and its values on selection.. I want to perform the entire submit and retrieval process of rows in a multi column listbox.. I couldnt get how to do it dynamically incase of RowSource Property..

If you could have helped me into this then it would have been really great for me..

Thanks & regards,
Kapil
 
Thanks a lot ..

I have been able to figure out the solution..

thanks & regards,
Kapil
 

Users who are viewing this thread

Back
Top Bottom