Results 1 to 4 of 4

Thread: Listbox issue

  1. #1
    Join Date
    Nov 2005
    Posts
    113

    Unanswered: Listbox issue

    I'd like to have a listbox to list all images that are stored in a certain folder. Are there anyone that knows how I should proceed?

  2. #2
    Join Date
    Oct 2003
    Location
    Ger
    Posts
    1,969
    Provided Answers: 1
    You have to get the names of all the images in the required directory using the CreateObject("Scripting.FileSystemObject")
    Let this as a string separated with Semi colon, which will be the RowSource of your list box
    You have to change the listBox property [RowSourceType] to be ValueList

  3. #3
    Join Date
    Nov 2004
    Location
    Norway
    Posts
    441
    Though I like scripting objects, Allen Browne has a full sample using Dir here
    http://allenbrowne.com/ser-59.html

    I haven't used it, but by a short browse, it seems it requires Access 2002/xp or higher, as it uses the .AddItem method of the listbox.
    Roy-Vidar

  4. #4
    Join Date
    Nov 2005
    Posts
    113
    Thanks, it was great

Posting Permissions

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