I am trying to attach a variaty of file types (mainly pdf, jpeg, word, excel and powerpoint). And it appears that the error only happens when previewing from the design view so I am not sure how much of an issue it is. I am hoping that it does not cause issues further down the process.
I am now trying to get the filename for an attachment control ...