Hi folks!
I'm trying to attach a file to an outlook email from Access. However, I don't always have the exact file name.
How can I call out the filename to include anything starting with something?
FileName = "G:\CLASP\CLASP Tools\RG_" & [Guideline] & ".docx"
I want it to pull anything in that folder that starts with RG_GuidelineName
So could be:
RG_Guideline1 large.docx
RG_Guideline1 small.docx
There would only be 1 file in that folder that would match.
I tried with *, but that didn't work:
FileName = "G:\CLASP\CLASP Tools\RG_" & [Guideline] & "*.docx"
Not sure if this is possible, but thanks for any insight!
I'm trying to attach a file to an outlook email from Access. However, I don't always have the exact file name.
How can I call out the filename to include anything starting with something?
FileName = "G:\CLASP\CLASP Tools\RG_" & [Guideline] & ".docx"
I want it to pull anything in that folder that starts with RG_GuidelineName
So could be:
RG_Guideline1 large.docx
RG_Guideline1 small.docx
There would only be 1 file in that folder that would match.
I tried with *, but that didn't work:
FileName = "G:\CLASP\CLASP Tools\RG_" & [Guideline] & "*.docx"
Not sure if this is possible, but thanks for any insight!