473,382 Members | 1,651 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Need help with conditional email attachments (was Please help!)

Hello all,

I've got a database that is used to register couples preparing to get married in our Church to a class named Pre-Cana, we collect couples personal infomation along with email addresse, I recently created a database for this using access. The database works fine but my quesiton is concerning email with attachments.

Every time a couple registers for a class, we send them a confirmation email welcoming them to the class along with an attachment letter stating that they've paid. We have several classes in one year and each letter changes with the respective class. i.e. Welcome to the October 19th class for pre-cana! or Welcome to the November 10th class for pre-cana.... Is there a way to automate this proccess using access and groupwise? I have this code being called from a button which sends an email based on a form:
Expand|Select|Wrap|Line Numbers
  1. Private Sub Command6_Click()
  2. Dim subject As String, Body As String, Email As String
  3. Email = [Text99]
  4. subject = [Text0]
  5. Body = [Text1] & Chr$(13) & [Text2] & Chr$(13) & [Text3] & Chr$(13) & [Text4]
  6.  
  7. DoCmd.SendObject , "Send an email", acForm, Email, , , subject, Body, False
  8.  
  9. End Sub
Is there a way I can send an attachment based on the date of the Class? or a way to serch files to attach directly from Access?

Thanks in advance for all your help!
Aug 27 '08 #1
3 1467
missinglinq
3,532 Expert 2GB
Please remember to provide a meaningful Title for any threads you start! This helps to ensure that our members understand what your problem is about, and that they and also the general public will have a better chance of finding answers to similar questions. It is difficult for the experts to answer questions when there is not enough details provided to understand the problem.

Because of this, I have given your thread a new title.

Please take the time to read the Posting Guidelines, paying particular attention to Give a clear title to your question.

Thank you and Welcome to Bytes!

Linq ;0)>
Aug 27 '08 #2
Please remember to provide a meaningful Title for any threads you start! This helps to ensure that our members understand what your problem is about, and that they and also the general public will have a better chance of finding answers to similar questions. It is difficult for the experts to answer questions when there is not enough details provided to understand the problem.

Because of this, I have given your thread a new title.

Please take the time to read the Posting Guidelines, paying particular attention to Give a clear title to your question.

Thank you and Welcome to Bytes!

Linq ;0)>

Will do. Sorry about that and thanks for the help in changing the title so I can get better replys!!!
Aug 28 '08 #3
NeoPa
32,556 Expert Mod 16PB
It's possible to change the subject, or even the body of an e-mail. I don't know anything about GroupWise, but the subject and the body are both strings and these can be manipulated in VBA.

Obviously you would need to have access to the information you want to use, but we can't really help much with that as we don't know your situation very well (You've told us very little of it).

Where would you have this information as to which class the recipient is being welcomed into?
Aug 30 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Chris Dunaway | last post by:
I have a string: 555-1234,12345,"Jones, John" I want to split the string based on a comma as a delimiter. Since the name portion has a comma and is delimited with quotation marks, I need to...
1
by: Simon | last post by:
Hi I hope some one can help, as i am not very good on Access I have built a database for placing orders for customers, On the Order Form i would like a button that would send out a email to...
6
by: ErwinF | last post by:
Hi there, I would like to know the following: How to send send email attachments using WebDAV in VB .NET? Sample code please................... Thanks for your help.
2
by: David Veeneman | last post by:
My web app creates several temporary files, then attaches them to an email that it sends out. When the app attches the documents to the email, .NET locks the files. My problem is that they aren't...
3
by: olafmol | last post by:
Hello, i want to write a PHP4 script that reads POP3 or IMAP mail and can decode the possible attachments in the email. I've looked around for some classes to do this, and found a few, but most...
6
by: Tim Marshall | last post by:
I am having one HELL of a time with sending pdfs that I generate. Outlook is not my preferred mail client but I have the wrethced thing installed so that I can use some late binding technique I...
1
by: shil | last post by:
Is there any possible way to create an email attachments from an URL in windows vb.net application? I'm using frame work 2.0, System.Net.Mail component. If I attach a file from my file system,...
7
by: Bobh | last post by:
I am trying to figure out some code for a report issue; I have an employee who has a incentive scheme. I have a report showing various income amounts and in the report footer I vae totals for...
1
by: rottmanj | last post by:
So after a few hours of playing with my config file, I think I have it to a point where I am ready to start adding in the rest of the components to my perl application. One thing that I know I need...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.