I have been looking through the posts for info on wildcards within a file name.
I have a number of documents (Excel,Word and PDF files)which I need to open from a command button.
They all have one thing in common in that they are named with firstly a Job Number followed by a hyphen and after that a unique combination of alphanumeric charachters. So I have something like this...
JobNo = textbox(11).txt
Filename = JobNo & "-" & "PO452345.PDF"
or
Filename = JobNo & "-" & "MPI.xls"
I just cannot get the syntax correct for a wild card (%) to replace the part after the "-"
Most of what I have read here uses LIKE but I wonder if it is necessary in this simple file name.
Any help would be much appreciated.
I have a number of documents (Excel,Word and PDF files)which I need to open from a command button.
They all have one thing in common in that they are named with firstly a Job Number followed by a hyphen and after that a unique combination of alphanumeric charachters. So I have something like this...
JobNo = textbox(11).txt
Filename = JobNo & "-" & "PO452345.PDF"
or
Filename = JobNo & "-" & "MPI.xls"
I just cannot get the syntax correct for a wild card (%) to replace the part after the "-"
Most of what I have read here uses LIKE but I wonder if it is necessary in this simple file name.
Any help would be much appreciated.