Solved

access database to outlook calendar

Posted on 2015-01-21
2
315 Views
Last Modified: 2015-01-28
I would like to have an access database linked to my outlook calendar for administration of the calendar. So using access to input data then upload into outlook.

What I have is equipment which needs calibration every 180 days, and I would like a simple way to enter the data into outlook.

The data I am looking at is fairly simple. Fields as follows:
1. Date
2. Equipment ID
3. Description
4. Validity period (days)
5. Hyperlink to a PDF document (certificate)

So based on 1+4 a reminder could be setup in outlook. Is it possible to do this?

Thanks
0
Comment
Question by:Negativ3
2 Comments
 
LVL 84

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 500 total points
ID: 40563922
You can automate Outlook from Access:

http://support.microsoft.com/kb/160502

The code that actually adds the Appointment is in Step 7.

Dim outobj As Outlook.Application
            Dim outappt As Outlook.AppointmentItem
            Set outobj = CreateObject("outlook.application")
            Set outappt = outobj.CreateItem(olAppointmentItem)
            With outappt
               .Start = Me!ApptDate & " " & Me!ApptTime
               .Duration = Me!ApptLength
               .Subject = Me!Appt
               If Not IsNull(Me!ApptNotes) Then .Body = Me!ApptNotes
               If Not IsNull(Me!ApptLocation) Then .Location = _
                  Me!ApptLocation
               If Me!ApptReminder Then
                  .ReminderMinutesBeforeStart = Me!ReminderMinutes
                  .ReminderSet = True
               End If
               .Save
            End With

Obviously, that code is referring to Fields on the form where it's running, so you'd have to replace those bits with valid references to your controls.

For my money, however, the easiest way to handle this is by using vbMAPI (www.everythingaccess.com). It's simple, easy to install and deploy, and works very well.
0
 

Author Closing Comment

by:Negativ3
ID: 40576855
Very nice solution, thanks
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Large Outlook files lead to various unwanted errors and corruption issues. Furthermore, large outlook files can also make Outlook take longer to start-up, search, navigate, and shut-down. So, In this article, i will discuss a method to make your Out…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question