Results 1 to 4 of 4
  1. #1
    Tom1 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2012
    Posts
    13

    VBA to automatically collect data through E-mail

    Hello,
    I currently collect data from e-mail for my db. However to do this repetitavely I have to go into manage replies > Resend this e-mail message, then go through the wizard to send the e-mail out. Is there a way in VBA to do these steps automatically with the code being assigned to a button on a form?

  2. #2
    alcapps is offline Competent Performer
    Windows 8 Access 2010 32bit
    Join Date
    Jan 2012
    Posts
    292
    if you are trying to send an email.. try
    docmd.SendObject(acSendQuery,"qryName",acsendtype, "Toemailaddress","ccemailaddress",,"subject","mess age")

  3. #3
    Tom1 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2012
    Posts
    13
    Hello,
    That code works fine to view / change / reply to my e-mail and then I update the db. I want the reply from the e-mail to automatically update the data in the db without the need for me or the user to open the db up.

  4. #4
    alcapps is offline Competent Performer
    Windows 8 Access 2010 32bit
    Join Date
    Jan 2012
    Posts
    292
    i'm not sure I understand what you are asking.
    You want an email reply to update the database with opening the database?

    you can create a macro that will be called from a scheduler Windows task. That macro could go and look for an email and import the attachments without anyone doing anything. It would take a lot of vba coding. All of which you can find. I have done this many time.
    you will need to look for outlook vba code from ms access.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. collect data via email
    By aspen in forum Access
    Replies: 2
    Last Post: 04-26-2012, 03:21 AM
  2. External Data Collect Data - email
    By DucDuc in forum Access
    Replies: 1
    Last Post: 01-19-2012, 12:06 AM
  3. Automatically Send E-Mail from Access
    By lilygtg in forum Access
    Replies: 1
    Last Post: 08-24-2011, 05:48 PM
  4. Best Way to Collect Data
    By dssrun in forum Access
    Replies: 9
    Last Post: 01-05-2011, 10:14 AM
  5. Sending mail automatically
    By carstenhdk in forum Forms
    Replies: 1
    Last Post: 05-31-2010, 04:23 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums