Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 332
  • Last Modified:

access database to outlook calendar

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
Negativ3
Asked:
Negativ3
1 Solution
 
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
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
 
Negativ3Author Commented:
Very nice solution, thanks
0

Featured Post

Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now