By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,679 Members | 2,602 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,679 IT Pros & Developers. It's quick & easy.

Populate List or Combo Box with file names in a folder

P: n/a
MS
I would like to be able to examine a folder, and populate a List Box or
Combo Box with the files that are in it.

How would you go about doing this?

The reason is that I would like the user to be able to restore a list of
tables from specifically selected files that periodically get "backed up"

Cheers!
Nov 13 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
I think if you are using Access 2002 or later, your listbox / combobox has
an AddItem method, which will let you add rows to it.
Look at the Dir() function to return the file names from a folder.

"MS" <Em***@Myemail.com> wrote in message
news:F0********************@news-server.bigpond.net.au...
I would like to be able to examine a folder, and populate a List Box or
Combo Box with the files that are in it.

How would you go about doing this?

The reason is that I would like the user to be able to restore a list of
tables from specifically selected files that periodically get "backed up"

Cheers!

Nov 13 '05 #2

P: n/a
MS

"MacDermott" <ma********@nospam.com> wrote in message
news:1m***************@newsread2.news.atl.earthlin k.net...
I think if you are using Access 2002 or later, your listbox / combobox has
an AddItem method, which will let you add rows to it.
Look at the Dir() function to return the file names from a folder.

"MS" <Em***@Myemail.com> wrote in message
news:F0********************@news-server.bigpond.net.au...
I would like to be able to examine a folder, and populate a List Box or
Combo Box with the files that are in it.

How would you go about doing this?

The reason is that I would like the user to be able to restore a list of
tables from specifically selected files that periodically get "backed up"

Cheers!


Sorry, forgot to say we're talkin' A97.
Nov 13 '05 #3

P: n/a
> Sorry, forgot to say we're talkin' A97.

This demonstrates a technique that works for A97:

http://groups-beta.google.com/group/...0410ec42d02213

It is easy to modify so that all the filenames in a directory are
listed instead of those ending in txt.

James A. Fortune

Nov 13 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.