ListBox

  • Thread starter Thread starter DS
  • Start date Start date
D

DS

I want to populate a listbox with a list of files from two directories. How
would I do this? The Directories are
C:\PROSERV\BU and C:\PRORED

Any help appreciated.
Thanks
DS
 
I'm assuming you mean based on the file listing within these directories.

Make sure that the listbox's Record Source Type is set to 'Value List'

Then using the function found at (other out there, Google to find more)

http://www.cardaconsultants.com/en/msaccess.php?lang=en&id=0000000027#DirList

you can then build a semi-colon seperated string which you will then use to
populate the listbox's RowSource.

Simple Example:
Me.ListBoxName.RowSource = "Value 1;Value 2;Value 3"
--
Hope this helps,

Daniel Pineault
For Access Tips and Examples: http://www.cardaconsultants.com/en/msaccess.php
If this post was helpful, please rate it by using the vote buttons.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Rename File 2
File Not Found 14
Synatax Error 1
Export to XLS 2
Syntax Error 3
Open Progran From Access 1
Transfering Records 1
Populate Listbox 3

Back
Top