Hi folks,
Had such good luck with the last post thought I'd try one more.
Allen Browne has a pretty neat listbox recursive list files module/tutorial on his site. It pulls the filenames/foldernames out of a folder that you specify (mine varies depending on the record you're looking at) and then puts them in a list box. The code can be found here:
What I want to then do is pull one of the file names (whichever is highlighted by the user) and use it to open the file or print it or whatever.
Ideally, I'd like to be able to do two things:
1. Select a file and open it.
2. Select one or more files and print them.
While it would be nice to get some specifics, it would, in the alternative, be helpful if anyone could look at how that thing of Allen's works to tell me if it's even possible to get the filenames out of the listbox by selecting them.
I've used listboxs where I used values in the box to open reports and such, but this one is very different in how it populates and I don't even know how to begin to get the value of the highlighted file.
Thanks for any suggestions,
T
PS: If there's another way that I can pull a list of filenames into a listbox via code and then select individual or multiple filenames and perform actions based on those choices, I'm open to those suggestions as well.
Had such good luck with the last post thought I'd try one more.
Allen Browne has a pretty neat listbox recursive list files module/tutorial on his site. It pulls the filenames/foldernames out of a folder that you specify (mine varies depending on the record you're looking at) and then puts them in a list box. The code can be found here:
What I want to then do is pull one of the file names (whichever is highlighted by the user) and use it to open the file or print it or whatever.
Ideally, I'd like to be able to do two things:
1. Select a file and open it.
2. Select one or more files and print them.
While it would be nice to get some specifics, it would, in the alternative, be helpful if anyone could look at how that thing of Allen's works to tell me if it's even possible to get the filenames out of the listbox by selecting them.
I've used listboxs where I used values in the box to open reports and such, but this one is very different in how it populates and I don't even know how to begin to get the value of the highlighted file.
Thanks for any suggestions,
T
PS: If there's another way that I can pull a list of filenames into a listbox via code and then select individual or multiple filenames and perform actions based on those choices, I'm open to those suggestions as well.