Recent content by mousemat

  1. M

    Solved Using CDO, selecting the text file template via a textbox on a form

    Excellent. It's been a long Christmas period. All working as required.
  2. M

    Solved Using CDO, selecting the text file template via a textbox on a form

    Hi DBGuy How would I reference the textbox from the form?
  3. M

    Solved Using CDO, selecting the text file template via a textbox on a form

    Hi I have been using the CDO method to send emails to people using text templates and placeholders, which work really well. What I'd like to do is determine at the time of sending the emails, which template to use. Currently the text template is written within the module itself. Const...
  4. M

    CDO Mail sending attachment via location field

    .AddAttachment rs.Fields("FormLocation") Worked perfectly. hanks fr all the help
  5. M

    CDO Mail sending attachment via location field

    So I have, now getting error 13 Type Mismatch But when I have .Attachment.Add filename I get the error 438
  6. M

    CDO Mail sending attachment via location field

    I get this error now with the code in answer 6 Again though hovering over the line shows the path and the file etc
  7. M

    CDO Mail sending attachment via location field

    I get the same error as highlighted at the start of the thread
  8. M

    CDO Mail sending attachment via location field

    No joy with the Cheekybuddha
  9. M

    CDO Mail sending attachment via location field

    This is the path as found detailed by rs.fields("FormLocation") C:\AccessTextFiles\ChristmasFayre2020BookingForm.pdf
  10. M

    CDO Mail sending attachment via location field

    .AddAttachment = filename gives the same error
  11. M

    CDO Mail sending attachment via location field

    I have code which work when the attachment is sets C:\AccessFiles\some.pdf However. I want to send a file that has been referenced in a text field within the table. The code gives a runtime error 438 but hovering over the line it stops at, shows the location and the file that I want to send out...
  12. M

    CDO Using a text file template

    Excellent. That's great. Many thanks for your help.
  13. M

    CDO Using a text file template

    Hmm getting there slowly. Ive added the Placeholders in the code, on separate lines and added the place holders to the text file but only getting the first placeholder populated. If Not (rs.EOF And rs.BOF) Then Do Until rs.EOF = True 'On Error Resume Next With imsg...
  14. M

    CDO Using a text file template

    Got it to send the text file. now just trying to sort the laceholders. "<<customer name>>." just gives me "<<customer name>>."
Top Bottom