Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / July 2006

Tip: Looking for answers? Try searching our database.

Outlook Reminders

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John - 03 Jul 2006 17:28 GMT
Is there anyway I can send multiple records to Outlook as reminders. For
example any records over a certain date?

I have seen & used several of the Outlook Reminder forms but they all seem
to only send the current record.
Arvin Meyer [MVP] - 03 Jul 2006 17:43 GMT
My Outlook reminder utility is open to be easily re-coded to use a recordset
reference instead of a form reference, and put that code inside a loop.

http://www.datastrat.com/Download/OutlookAppointment.zip
Signature

Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads
http://www.datastrat.com
http://www.mvps.org/access

> Is there anyway I can send multiple records to Outlook as reminders. For
> example any records over a certain date?
>
> I have seen & used several of the Outlook Reminder forms but they all seem
> to only send the current record.
John - 04 Jul 2006 08:35 GMT
Can you give me an example of the code used to reference a recordset? It
would be greatly appreciated.

> My Outlook reminder utility is open to be easily re-coded to use a recordset
> reference instead of a form reference, and put that code inside a loop.
[quoted text clipped - 5 lines]
> > I have seen & used several of the Outlook Reminder forms but they all seem
> > to only send the current record.
Arvin Meyer [MVP] - 06 Jul 2006 05:11 GMT
Dim db As DAO.Database
Dim rst As DAO.Recordset

Set db = CurrentDb
Set rst = db.OpenRecordset ("Named Query Or Select Statement",
dbOpenSnapshot)
Signature

Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads
http://www.datastrat.com
http://www.mvps.org/access

> Can you give me an example of the code used to reference a recordset? It
> would be greatly appreciated.
[quoted text clipped - 11 lines]
>> > seem
>> > to only send the current record.
John - 06 Jul 2006 15:45 GMT
Sorry to keep bothering you with all of this. I relatively new to coding.

I have a table called KitList. In this table I have the following fields
that I need to be written to Outlook:

SerialNumber
Manufacturer
ProductType

The above need to be written to the body of the reminder,

ReminderDate

Needs to be the date obviously!

And the Reminder subject is always the text "Expired"

I have no problem writing the query, but I haven't got a clue how to append
these fields to outlook. If you can help I would be very grateful but I do
understand if I asking to much!

Thanks for you time Arvin.

> Dim db As DAO.Database
> Dim rst As DAO.Recordset
[quoted text clipped - 17 lines]
> >> > seem
> >> > to only send the current record.
Arvin Meyer [MVP] - 08 Jul 2006 02:29 GMT
Since you already have the data in Access, you may want to keep the data
where it is and look at the ReminderDate when you start up to see if there
is any pending reminder.

Here's an example:

Private Sub Form_Open()
'********************************************************************
' Purpose: Email Updates
'
' Author:  Arvin Meyer
' Date:    March 27, 2002
' Comment: Check if wanted, then run in a Transaction
'
'********************************************************************
On Error GoTo Err_Handler
Dim rstItems As DAO.Recordset
Dim db As DAO.Database
Dim lngCount As Long

Set db = CurrentDb
Set rstItems = db.OpenRecordset("qryItemsToEmail", dbOpenSnapshot)

lngCount = rstItems.RecordCount

If lngCount > 0 Then
   If MsgBox("You have records with effective dates that need mailing." & _
       vbCrLf & vbCrLf & "MAILTHEM?", vbYesNo, "Email Records?") = vbYes
Then

       Call SendMail

   End If
End If

Exit_Here:

   rstItems.Close
   Set rstItems = Nothing
   Set db = Nothing
   Exit Sub

Err_Handler:
       MsgBox Err.Description
       Resume Exit_Here
   End Select
End Sub

The SendMail call just uses SendObject code from the helpfile example. If
you are using Outlook, you can also use this:

http://www.datastrat.com/Code/OutlookEmail.txt
Signature

Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads
http://www.datastrat.com
http://www.mvps.org/access

> Sorry to keep bothering you with all of this. I relatively new to coding.
>
[quoted text clipped - 44 lines]
>> >> > seem
>> >> > to only send the current record.
John - 10 Jul 2006 08:21 GMT
Thank you very much for your time. It seems to work just fine. I really
appreciate it.

Regards,

> Since you already have the data in Access, you may want to keep the data
> where it is and look at the ReminderDate when you start up to see if there
[quoted text clipped - 96 lines]
> >> >> > seem
> >> >> > to only send the current record.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.