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: 70
Default Filling a listbox

Hi,
I have added a multi-column ListBox to a user form and need to fill it with
data using VBA/ADO
the data is retrieved into a recordset from SQL Server using this statement:
rst.open "select Id, Name, Address1 from Customers where name like
'abc%'", oconn

I am looking for something like lstCustomers.rowsource = rst, which does not
work here

Thanks in advance for your suggestions.
Regards
Habib


 
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
Filling a listbox whith recordset data LuisM[_2_] Excel Programming 4 July 31st 06 05:02 AM
filling userform listbox simonhall[_4_] Excel Programming 2 June 16th 06 01:43 AM
Filling a listbox with transpose of a range from an excel sheet viswanthank Excel Programming 2 June 9th 05 03:37 PM
Problem with Find filling a listbox vba farmer[_2_] Excel Programming 4 October 12th 04 06:55 PM
Filling a listbox depending on font index Trevor[_3_] Excel Programming 0 October 1st 03 08:25 PM


All times are GMT +1. The time now is 11:58 PM.

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

About Us

"It's about Microsoft Excel"