Populate Listbox With File Names

  • Thread starter Thread starter DW
  • Start date Start date

DW

Registered User.
Local time
Today, 17:03
Joined
May 25, 2002
Messages
58
I need to populate a list box with the contents of a directory.

The path is as follows.

L:\Home\???.jpg

I understand the callback function will do this.
I have had no experience using this function before, can some-one help with this.

Dave
 
This looks like it could do the trick.
I'll let you know if I have any probs.
Thanks
Dave
 
My code is throwing an error on the following.

Private Sub lstPreviewJpgs_AfterUpdate()
Me.[PreviewOLE].Picture = "jpegFolderPath" & Me!lstPreviewJpgs

End Sub

Run-Time error 438
Oject doesn't support this property or method. ??

Any Idea's

Dave
 
Where is says "jpegFolderPath" you have to substitute the name and path of the directory that holds your jpeg files. Something like:

Me.[PreviewOLE].Picture = "c\:my docments\images\" & Me!lstPreviewJpgs
 

Users who are viewing this thread

Back
Top Bottom