Can anyone tell me if it is possible to search for a file using the FileExists function that has a string with a wildcard?
If FileExists("C:\Desktop\Graphic Images\" & "*" & myid & "*") = True Then
myid contains an id#. The specific file name will vary for each record but should have the id# within the filename. I want to look for a file that is in Graphic Images folder but can start with any character, include the value of myid and end with any characters. The code above doesn't work.
Thank you.


Reply With Quote