Search results

  1. A

    Pulling table data into Outllook template

    Okay, thank you, done that. Slowly moving down the code. So now getting to this: Set salesRST = CurrentDb.OpenRecordset(strSQL) Getting run-time error: Too few parameters. Expected 2 Sorry if I'm being a pain but as I say I'm a noob really. I have this idea in my head for a DB and...
  2. A

    Pulling table data into Outllook template

    Thank you. Now stuck at this Set MailOutlook = appOutlook.CreateItemFromTemplate(Application.CurrentProject.Path & "\RefundRequest.oft") Its stating Object Required?
  3. A

    Pulling table data into Outllook template

    Hi, I have an outlook template (attached screenshot) and some code that looks through two tables to grab required info for email template. I have to be honest I have borrowed this code from somewhere else and amended it. I am however getting syntax error: Syntax error (missing operator) in...
  4. A

    Multiple Attachments on single email from continuous subform

    An example would be very helpful please 👍
  5. A

    Multiple Attachments on single email from continuous subform

    @theDBguy how do I adapt that code to loop through the continuous subform?
  6. A

    Multiple Attachments on single email from continuous subform

    Hello once again, I had previously posted with a very similar question but in that example I was using a list box. Having a re-think I was potentially adding an unnecessary step to my DB because I already have a list of the documents that are required to be attached in my 'ExisitngLeadF, as a...
  7. A

    Delete Windows files with Shell command

    Apologies for the delay have been away for a few days with the kids. I shall have a look through all suggestions today and update on my progress. Thank you all for your help so far.
  8. A

    Delete Windows files with Shell command

    Sorry probably should of explained what I'm trying to achieve! My database allows the end user to attach (copy & past) proofs of attempted client contact to the database (folder under the database). This proof isn't required beyond 30 days, so rather than files building up I wanted an...
  9. A

    Delete Windows files with Shell command

    This works in windows command line as I have tried it: ForFiles /p "C:\Users\David\Desktop\New Leads\ContactProofs" /s /d -30 /c "cmd /c del @file" I thought I might be able to run it as a shell command within VBA but with CurrentProject.Path like this: Shell ForFiles /p &...
  10. A

    Solved Multiple Attachments on single email from listbox

    Send me your address and I'll send you a pack ;-)
  11. A

    Solved Multiple Attachments on single email from listbox

    BOOM! and thats the kinda help I'm talking about @CJ_London. Thank you so much, your a diamond 👍
  12. A

    Solved Multiple Attachments on single email from listbox

    Unfortunately not! :-( Literally copied and pasted the code you provided, I can repost if you would like me to? This is what I couldn't work out, I thought I was really close with the code I had!
  13. A

    Solved Multiple Attachments on single email from listbox

    So my original code opens two emails one with each of the attachments. Your amended code adds the same attachment twice to one email 👍
  14. A

    Solved Multiple Attachments on single email from listbox

    @arnelgp are you able to help please? I note that you helped in this thread: (2) Solved - Sending Email to recipients from Listbox | Access World Forums (access-programmers.co.uk) where @Momma wanted to loop through a listbox. Thanks in advance
  15. A

    Solved Multiple Attachments on single email from listbox

    @Gasman once again I find myself staring at the screen without a clue what to do, scratching my head, really confused. Please don't take this the wrong way but you have now been involved in three maybe four of my threads, and every time I find your input really frustrating! I get your slogan...
  16. A

    Solved Multiple Attachments on single email from listbox

    Could you not just show me how I fit that in with the code please?
  17. A

    Solved Multiple Attachments on single email from listbox

    @Gasman how would I incorporate that into the code please?
  18. A

    Solved Multiple Attachments on single email from listbox

    Okay thanks @MarkK. This is not my issue, I have tried and failed at what I was attempting hence why I am here asking for help.
  19. A

    Solved Multiple Attachments on single email from listbox

    Hi @MarkK, thank you for the code. Your code does not attach anything unless you select the item first. I'm only using the list box as a method to display what is being attached. I'm looking for code that will loop through each item in said list box, without, end user interacting with said...
Back
Top Bottom