Thanks for your response but I finally figured out a way past the with and without attachment. What I did was make another sub that had attachment stuff in it. In my tester I had an if statement
if txtAttachment = "" then
call the sub with no attachment
else if txtAttachment <> "" then
call the sub with the attachment in it
end if.