Results 1 to 3 of 3
  1. #1
    tb1150 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2015
    Location
    Canterbury
    Posts
    16

    Post Help with automated per-record report distribution

    Hi all, first post here.
    I am looking for some help regarding automated per-record report distribution. In my system there is a report generated with a record for every person that must be sent out to them on a periodic basis. Ideally I would like to send them out in batch(5000+ records) so that each person receives theirs via E-mail. I am not too worried about the format. Each persons record contains their E-mail address so that should make things easier.


    I appreciate any help you can offer.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,527
    I have a form with a list box of users, emails.
    The button will then scan the list , send email to each individual,and attach the query. The query uses the form user list, to generate the data.
    So you need a userID field or something (We used STATE) to divide the data amounst the users.

    As the code goes thru the users list, the query sees the user and pulls THAT users data.
    Code:
    dim vEmail
    
    for u = 0 to lstUsers.listcount - 1
        lstUser = lstUsers.item(u)
       vEmail = lstUser.column(2)
    
        docmd.SendObject acSendQuery ,query,acformatxls,vEmail ,,,subj,msg
    next

  3. #3
    tb1150 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2015
    Location
    Canterbury
    Posts
    16
    Thank you mate! Is exactly what I am looking for

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

Similar Threads

  1. Replies: 2
    Last Post: 06-13-2014, 08:04 AM
  2. Distribution type
    By Ines in forum Access
    Replies: 1
    Last Post: 05-19-2014, 10:08 AM
  3. Report Distribution Issue
    By RayMilhon in forum Access
    Replies: 3
    Last Post: 03-19-2014, 12:32 PM
  4. Automated record generation
    By mlozano in forum Database Design
    Replies: 3
    Last Post: 10-05-2012, 02:57 PM
  5. Report Distribution List
    By mvuhu_accessforum in forum Forms
    Replies: 1
    Last Post: 10-18-2010, 11:18 AM

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