LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 57
Default List box with 2 columns

Hello

I am populating a list box with the field names from a
recordset from an access database using an Excel form in
VB. However, i have done the part that populates the
field names, now i wish to have a 2nd column that contains
the fields data type. How do i add items, currently i
have:

userform1.listbox1.additem rst.fields(x).name

i also want to add alond side its name

rst.fields(x).type.

How do i add them so the field name is column 1, and the
type is column 2.


TIA

Nath.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Alphabetical List Of Columns trip_to_tokyo[_3_] Excel Discussion (Misc queries) 3 December 4th 09 07:31 PM
Shorten list into several columns Kathy's List Excel Discussion (Misc queries) 3 July 21st 09 11:35 PM
Splitting a list over 2-3 columns Jamie B Excel Discussion (Misc queries) 1 February 9th 09 06:48 PM
list turned into two columns Fipp Excel Discussion (Misc queries) 1 June 8th 07 12:39 PM
Need to add mutliple columns to a List Box Martin SChukrazy Excel Programming 1 April 4th 04 01:35 AM


All times are GMT +1. The time now is 07:26 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"