A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Question regarding list boxes



 
 
Thread Tools Display Modes
  #1  
Old March 12th, 2007, 05:30 AM posted to microsoft.public.access.forms
StuJol
external usenet poster
 
Posts: 122
Default Question regarding list boxes

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?
  #2  
Old March 12th, 2007, 05:51 AM posted to microsoft.public.access.forms
Allen Browne
external usenet poster
 
Posts: 11,706
Default Question regarding list boxes

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)

--
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.

"StuJol" wrote in message
...
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?


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:15 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.