Solved

access database to outlook calendar

Posted on 2015-01-21
2
306 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Outlook Free & Paid Tools
Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
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…

910 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now