Solved

access database to outlook calendar

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Sometimes Outlook might have problems sending a message. There may be various causes- corrupted PST, AV scanner etc. The message, instead of going to the Sent Items folder, sits in the Outbox indefinitely. To remove it you can use a free tool cal…
Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

705 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

15 Experts available now in Live!

Get 1:1 Help Now