PC Review


Reply
Thread Tools Rate Thread

Confirmation Email

 
 
=?Utf-8?B?R2FyeSBEb2xsaXZlcg==?=
Guest
Posts: n/a
 
      7th Nov 2007
Hi all,
I want to be able to send out shipment confirmation emails at the end of the
day, based on a query that populates with the records that meet some
specified criteria. Any record that shows in this query result set will need
to have an email sent to the customer on record. I am having the hardest
time locating some code snipets that I could experiment with. How would I be
able to have it go through each record and send an email? Any help,
guidance, or code would be greatly appreciated. Thanks!
-gary
 
Reply With Quote
 
 
 
 
=?Utf-8?B?RGFuaWVs?=
Guest
Posts: n/a
 
      7th Nov 2007
Try something like

Dim rst As DAO.Recordset
Set rst = CurrentDb.OpenRecordset("YourQueryName")
If rst.RecordCount > 0 Then 'ensure there is data
rst.MoveFirst 'goto the 1st recordset
Do Until rst.EOF 'End of file
'Send your e-mail Here
'
'
rst.MoveNext
Loop
Else
MsgBox "No Query Results To Process!", vbInformation
End If
--
Hope this helps,

Daniel P





"Gary Dolliver" wrote:

> Hi all,
> I want to be able to send out shipment confirmation emails at the end of the
> day, based on a query that populates with the records that meet some
> specified criteria. Any record that shows in this query result set will need
> to have an email sent to the customer on record. I am having the hardest
> time locating some code snipets that I could experiment with. How would I be
> able to have it go through each record and send an email? Any help,
> guidance, or code would be greatly appreciated. Thanks!
> -gary

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to send an automatic confirmation of email receipt of email Carolyn Microsoft Outlook Discussion 1 2nd Nov 2009 03:35 PM
Confirmation of Email Sent DEI Microsoft Access VBA Modules 3 5th Nov 2008 12:26 PM
Email confirmation =?Utf-8?B?U2FzaGE=?= Microsoft Frontpage 3 14th Sep 2006 04:09 PM
Can Frontpage email a confirmation from an email field? =?Utf-8?B?TWF1cmljZQ==?= Microsoft Frontpage 4 8th May 2006 09:10 AM
create confirmation email in vba when email received Microsoft Outlook VBA Programming 1 23rd Jan 2004 03:07 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:59 AM.