+ Reply to Thread
Results 1 to 2 of 2

ListBox property

  1. #1
    Registered User
    Join Date
    05-11-2007
    Location
    Belgium
    Posts
    68

    ListBox property

    I need to write a recordset from access to excel as a list.
    To retrieve the data from access is not a problem. The question is how to fill the listbox and set the property of the field as a listbox. Any idea ? If someone as already the experience on how to write data from access to excel as a listbox, it would be very welcome.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    Don't know how you have got the data from access, so I'll go through it all.

    1) A form with a listbox called listbox1.
    2) A database c:\temp\test2.mdb, with a table called access_table1 and a field called col_1
    3) The form initialization code
    Please Login or Register  to view this content.
    The code will open the database, select the relevant details into a recordset, then from that recordset, create an array. The array is then used to provide the list to the listbox.

    HTH

    rylo

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1