Hello,
I have a form which exports data to a Word file and saves it with the value indicated in the textbox (FILENO).
I then have a code that opens Outlook but I am having problem in attaching the correct file.
The code (wrong) that I have come up with, will only attached a file with a specific name (ex. test.doc).
Since the folder TEST will have multiple files, is there a way I can attach the file that has the same value in a textbox (FILENO) on the form?
Thank you
I have a form which exports data to a Word file and saves it with the value indicated in the textbox (FILENO).
I then have a code that opens Outlook but I am having problem in attaching the correct file.
The code (wrong) that I have come up with, will only attached a file with a specific name (ex. test.doc).
Code:
.Attachments.Add "p:\Test\test.doc", olByValue, 1
Since the folder TEST will have multiple files, is there a way I can attach the file that has the same value in a textbox (FILENO) on the form?
Thank you