Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / March 2007

Tip: Looking for answers? Try searching our database.

Question regarding list boxes

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
StuJol - 12 Mar 2007 06:30 GMT
Using Access 2003, is it possible to display all files in a folder inside a
list box? so if i had a folder with 10 pdf files in it, the list box would
display all the files? or do i have to type the name of each pdf file into
the list box manually?
Allen Browne - 12 Mar 2007 06:51 GMT
See:
   List files recursively
at:
   http://allenbrowne.com/ser-59.html

To list all the PDF files in C:\MyFiles, in a list box named List0 on Form1,
the code would be:

   Call ListFiles("C:\MyFiles", "*.pdf", False, Forms!Form1!List0)

Signature

Allen Browne - Microsoft MVP.  Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

> Using Access 2003, is it possible to display all files in a folder inside
> a
> list box? so if i had a folder with 10 pdf files in it, the list box would
> display all the files? or do i have to type the name of each pdf file into
> the list box manually?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.