Results 1 to 12 of 12
  1. #1
    GeorgeB is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2012
    Posts
    18

    Sending data from form to multiple emails

    Hello everyone,
    the last time I used Access was 2000 so I am always 12 years behind and very rusty,

    anyway I am trying to create a database with a list of documents names, every few month we have a new issue of every document that we need to send to multiple emails, I finally created a form that contains all the data but I can't send it by email to the emails in the form

    It's hard to explain it so I attached the database



    Thanks in advance for you help and support getting me back to track

  2. #2
    Stingaway is offline Efficiency Junkie
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2011
    Location
    The deep south. Keep going until you hit water basically.
    Posts
    224
    Without actually looking, as I am currently on a tablet... If you just want to send a list you can either export a query, table or even print preview a report and send it via email.

  3. #3
    GeorgeB is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2012
    Posts
    18
    Thanks Stingaway for you reply,
    the thing is that the data are generated in the form, I couldn't extract the emails from the tables or queries

  4. #4
    Stingaway is offline Efficiency Junkie
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2011
    Location
    The deep south. Keep going until you hit water basically.
    Posts
    224
    If the data is generated on a form, it should be able to be generated in a report.. In which case it can be sent directly through email as a PDF or an XPS...

  5. #5
    GeorgeB is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2012
    Posts
    18
    I attached a snapshot to make it easier to explain

    I want to send the latest issue to all the emails in the list

  6. #6
    Stingaway is offline Efficiency Junkie
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2011
    Location
    The deep south. Keep going until you hit water basically.
    Posts
    224
    So is the latest issue a file attachment or is it the data in the bottom of that form?

  7. #7
    GeorgeB is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2012
    Posts
    18
    Yeah, it is a file attachment, but I don't mind to attach the file manually, what I really want to do now, is adding all the emails in the list to the TO: field of an email
    Last edited by GeorgeB; 01-03-2012 at 11:06 PM. Reason: More information

  8. #8
    Stingaway is offline Efficiency Junkie
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2011
    Location
    The deep south. Keep going until you hit water basically.
    Posts
    224
    Ok finally got a look at this. It's going to be a lot trickier based on the fact that instead of normalizing the data between CPs and Documents and then having a separate CP-Doc related table you have a LOOKUP inside the Documents table.

    Ideally what you would want to do in this scenario is isolate independent multiple relationships (better known as fourth normal form). Once you have the one to many/many to many relationships (ie CPs to Doc Nums) handled via separate tables you would then need to create a query to list all CP numbers based on the document number selected in your form.

    You can do this by creating the query that references the new CP - Doc relationship table and then filter it by using =[Forms]![Documents]![doc_name] as your criteria.

    Once you have that result set, there are a few ways to send the email - the one that comes to mind is that you can pass it to a string variable in VBA that you then would use as the "TO:" field.

    There may be other ways around it, but as I said the issue is going to be complicated by the original design of the database itself.

    Hope this helps...

  9. #9
    GeorgeB is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2012
    Posts
    18
    I really appreciate you help and support

    I am going to create a new database to avoid the complexity I am having now

    so you suggestion is

    1) Document Table ( all the document numbers and name)
    2) CP Table (with all the contractor numbers and email)
    3) Issues Table ?? or Issues should be included in the Document Table ??

    I know that it's annoying to explain something easy to someone and he still doesn't get it, I am apologizing in advance

  10. #10
    GeorgeB is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2012
    Posts
    18

    Post Try2

    Hi Stingaway

    I created my Try2 following your advise but still can't get it working, can you please if you have time recommend what type of modification do I need to do

    Thanks

  11. #11
    Stingaway is offline Efficiency Junkie
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2011
    Location
    The deep south. Keep going until you hit water basically.
    Posts
    224
    You are very much on the right track here - you just needed another table and some actual data defined. I am attaching a slightly modified version of yours (changes some table names for clarity and added some lookups on the tables to make them easier to populate quickly. (Ideally that should be form driven, but for purposes of this example I thought it might be useful to you.)

    Hope this helps...

  12. #12
    GeorgeB is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2012
    Posts
    18
    Thanks very much for your help

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

Similar Threads

  1. sending gmail email through access
    By TheShabz in forum Programming
    Replies: 20
    Last Post: 02-19-2012, 12:24 PM
  2. Sending Email via Novell Groupwise
    By jgelpi16 in forum Programming
    Replies: 0
    Last Post: 11-04-2010, 07:24 AM
  3. Email sending
    By Steven.Allman in forum Access
    Replies: 25
    Last Post: 06-21-2010, 09:37 AM
  4. Sending email
    By nashr1928 in forum Reports
    Replies: 8
    Last Post: 04-27-2010, 11:14 PM
  5. Replies: 1
    Last Post: 03-09-2006, 01:50 PM

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