Hello,
currently I use the following code to open a folder and display the contents within it
Dim strLocation
strLocation = "W:\folder_path\"
Shell "C:\WINDOWS\explorer.exe """ & strLocation & "", vbNormalFocus
This works fine but what I want to do next is limit the files that are shown.
Within the folder path I have a load of pdf documents with the following naming structure - "module1 - Joe Bloggs.pdf", "module1 - John Smith.pdf", module2 - John Smith.pdf" and so on.
Can I add something to the code to allow me to only show those files containing the word "smith" in the title? (I have a field on my form called ctlsearch that will contain the relevant "text" to search on.
Many Thanks,
Alan
currently I use the following code to open a folder and display the contents within it
Dim strLocation
strLocation = "W:\folder_path\"
Shell "C:\WINDOWS\explorer.exe """ & strLocation & "", vbNormalFocus
This works fine but what I want to do next is limit the files that are shown.
Within the folder path I have a load of pdf documents with the following naming structure - "module1 - Joe Bloggs.pdf", "module1 - John Smith.pdf", module2 - John Smith.pdf" and so on.
Can I add something to the code to allow me to only show those files containing the word "smith" in the title? (I have a field on my form called ctlsearch that will contain the relevant "text" to search on.
Many Thanks,
Alan