Does anyone know how to get appointments from an Access Db Calender program to the Outlook Calendar?
What fields are required? How can I use OLE to do it? Can it be done only one way (from Access to Outlook). Can it be based on a query? Is there existing code to do it?
It is to work in Access 2000 & XP.
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Outlook data from Access (Access 2002 Sp2)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Outlook data from Access (Access 2002 Sp2)
- This topic has 22 replies, 4 voices, and was last updated 21 years, 5 months ago.
AuthorTopicWSPeter Kinross
AskWoody LoungerDecember 19, 2003 at 8:06 am #398203Viewing 1 reply threadAuthorReplies-
WSHansV
AskWoody LoungerDecember 19, 2003 at 9:04 am #759501I don’t know about Outlook 2000, but Outlook 2002 can import a table from Access. For Calendar Items, you will want to have at least fields Subject, StartDate, StartTime, EndDate and EndTime in the table.
– Select File | Import and Export…
– Select “Import from another program or file”, then click Next.
– Select “Microsoft Access”, then click Next.
– Click Browse… to select a database, then click Next.
– Select the Calendar folder, then click Next.
– Select the table by ticking its check box.
– Click “Map custom fields”.
– If the field names in the Access table correspond to those in Outlook, the correspondence will be automatic; otherwise, you will have to drag Access fields to the corresponding Outlook fields.
– Click OK, then Finish.This only works with tables, not with queries.
You could also use Automation to do this from Access; you would create an instance of Outlook in code and control it from Access. See MSKB article ACC2000: How to Use Automation to Add Appointments to Microsoft Outlook. You can adapt the code given there to loop through the records of a table or query.
-
WBell
AskWoody_MVPDecember 19, 2003 at 12:13 pm #759535To amplify on Hans’ response a bit, we have use the Automation approach in several instances to create either appointments or tasks in Outlook when records are added or edited in Access. You can also mark a task complete, or change an appointment date/time, and set reminders using that approach. The import option is useful on a one-time basis, but is limited if you want to really tie the two together.
-
WSPeter Kinross
AskWoody Lounger -
WSHansV
AskWoody LoungerDecember 20, 2003 at 1:08 pm #759860The attached text file contains an example; it is not meant as complete code, but as a starting point.
The MatchAppointment function takes a start date, start time, end date, end time and subject as arguments and loops through the appointments in the Outlook calendar to look for a match. If found, it returns True.
-
WSPeter Kinross
AskWoody Lounger -
WSPeter Kinross
AskWoody Lounger -
WSTheGry
AskWoody LoungerJanuary 13, 2004 at 9:04 am #767348Edited by HansV to replace ridiculously large screenshot by somewhat smaller one. Please don’t post 1400 pixels wide pictures.
G’day Hans
To extend this a little – any idea of the model to create recurring items into Outlook from Access. I’ve been searching the forums and the web for a while without success. I have some idea from my object browser (see attached) but not enought to start coding with …
Regards Ken -
WSHansV
AskWoody LoungerJanuary 13, 2004 at 9:17 am #767356This is not an Access question. Once you know how to create a recurring item in Outlook VBA, it is a (relatively) simple matter of creating an Outlook application object, as in the code I attached to a previous reply in this thread, and use this object to execute the Outlook code. I suggest that you post a question in the Outlook forum on how to create a recurring appointment in Outlook VBA.
-
WSTheGry
AskWoody Lounger -
WSTheGry
AskWoody Lounger -
WSHansV
AskWoody LoungerJanuary 13, 2004 at 9:17 am #767357This is not an Access question. Once you know how to create a recurring item in Outlook VBA, it is a (relatively) simple matter of creating an Outlook application object, as in the code I attached to a previous reply in this thread, and use this object to execute the Outlook code. I suggest that you post a question in the Outlook forum on how to create a recurring appointment in Outlook VBA.
-
WSTheGry
AskWoody LoungerJanuary 13, 2004 at 9:04 am #767349Edited by HansV to replace ridiculously large screenshot by somewhat smaller one. Please don’t post 1400 pixels wide pictures.
G’day Hans
To extend this a little – any idea of the model to create recurring items into Outlook from Access. I’ve been searching the forums and the web for a while without success. I have some idea from my object browser (see attached) but not enought to start coding with …
Regards Ken
-
-
-
WSHansV
AskWoody LoungerDecember 20, 2003 at 1:08 pm #759861The attached text file contains an example; it is not meant as complete code, but as a starting point.
The MatchAppointment function takes a start date, start time, end date, end time and subject as arguments and loops through the appointments in the Outlook calendar to look for a match. If found, it returns True.
-
WBell
AskWoody_MVPDecember 20, 2003 at 3:23 pm #759884Hans has provided a good start, so let me just add a small point we uncovered that may be useful. In general, users will want to add their own appointments manually, and it becomes important to not mess with those inadvertently when using automation. To deal with that we set a special field in one of the optional Outlook fields where we stored a primary key value associated with the Access appointment, and we then used that to make sure we were dealing with an appointment (or task) that had been created by the Automation routines.
-
WSPeter Kinross
AskWoody LoungerDecember 21, 2003 at 2:54 am #760044 -
WSPeter Kinross
AskWoody LoungerDecember 21, 2003 at 2:54 am #760045
-
-
-
WBell
AskWoody_MVPDecember 20, 2003 at 3:23 pm #759885Hans has provided a good start, so let me just add a small point we uncovered that may be useful. In general, users will want to add their own appointments manually, and it becomes important to not mess with those inadvertently when using automation. To deal with that we set a special field in one of the optional Outlook fields where we stored a primary key value associated with the Access appointment, and we then used that to make sure we were dealing with an appointment (or task) that had been created by the Automation routines.
-
WSPeter Kinross
AskWoody LoungerWBell
AskWoody_MVPDecember 19, 2003 at 12:13 pm #759536To amplify on Hans’ response a bit, we have use the Automation approach in several instances to create either appointments or tasks in Outlook when records are added or edited in Access. You can also mark a task complete, or change an appointment date/time, and set reminders using that approach. The import option is useful on a one-time basis, but is limited if you want to really tie the two together.
WSPeter Kinross
AskWoody LoungerWSPeter Kinross
AskWoody LoungerWSHansV
AskWoody LoungerDecember 19, 2003 at 9:04 am #759502I don’t know about Outlook 2000, but Outlook 2002 can import a table from Access. For Calendar Items, you will want to have at least fields Subject, StartDate, StartTime, EndDate and EndTime in the table.
– Select File | Import and Export…
– Select “Import from another program or file”, then click Next.
– Select “Microsoft Access”, then click Next.
– Click Browse… to select a database, then click Next.
– Select the Calendar folder, then click Next.
– Select the table by ticking its check box.
– Click “Map custom fields”.
– If the field names in the Access table correspond to those in Outlook, the correspondence will be automatic; otherwise, you will have to drag Access fields to the corresponding Outlook fields.
– Click OK, then Finish.This only works with tables, not with queries.
You could also use Automation to do this from Access; you would create an instance of Outlook in code and control it from Access. See MSKB article ACC2000: How to Use Automation to Add Appointments to Microsoft Outlook. You can adapt the code given there to loop through the records of a table or query.
Viewing 1 reply thread -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Perplexity Pro free for 12 mos for Samsung Galaxy phones
by
Patricia Grace
1 hour, 19 minutes ago -
June KB5060842 update broke DHCP server service
by
Alex5723
3 hours, 48 minutes ago -
AMD Ryzen™ Chipset Driver Release Notes 7.06.02.123
by
Alex5723
3 hours, 54 minutes ago -
Excessive security alerts
by
WSSebastian42
1 hour, 54 minutes ago -
* CrystalDiskMark may shorten SSD/USB Memory life
by
Alex5723
13 hours, 22 minutes ago -
Ben’s excellent adventure with Linux
by
Ben Myers
3 minutes ago -
Seconds are back in Windows 10!
by
Susan Bradley
30 minutes ago -
WebBrowserPassView — Take inventory of your stored passwords
by
Deanna McElveen
10 hours, 25 minutes ago -
OS news from WWDC 2025
by
Will Fastie
14 hours, 36 minutes ago -
Need help with graphics…
by
WSBatBytes
1 hour, 21 minutes ago -
AMD : Out of Bounds (OOB) read vulnerability in TPM 2.0 CVE-2025-2884
by
Alex5723
1 day, 4 hours ago -
Totally remove or disable BitLocker
by
CWBillow
3 hours, 57 minutes ago -
Windows 10 gets 6 years of ESU?
by
n0ads
7 hours, 13 minutes ago -
Apple, Google stores still offer China-based VPNs, report says
by
Nibbled To Death By Ducks
1 day, 15 hours ago -
Search Forums only bring up my posts?
by
Deo
1 day, 15 hours ago -
Windows Spotlight broken on Enterprise and Pro for Workstations?
by
steeviebops
2 days, 3 hours ago -
Denmark wants to dump Microsoft for Linux + LibreOffice
by
Alex5723
1 day, 19 hours ago -
How to get Microsoft Defender to honor Group Policy Setting
by
Ralph
2 days, 3 hours ago -
Apple : Paragon’s iOS Mercenary Spyware Finds Journalists Target
by
Alex5723
2 days, 14 hours ago -
Music : The Rose Room – It’s Been A Long, Long Time album
by
Alex5723
2 days, 15 hours ago -
Disengage Bitlocker
by
CWBillow
2 days, 5 hours ago -
Mac Mini M2 Service Program for No Power Issue
by
Alex5723
2 days, 17 hours ago -
New Win 11 Pro Geekom Setup questions
by
Deo
1 day, 15 hours ago -
Windows 11 Insider Preview build 26200.5651 released to DEV
by
joep517
3 days ago -
Windows 11 Insider Preview build 26120.4441 (24H2) released to BETA
by
joep517
3 days ago -
iOS 26,, MacOS 26 : Create your own AI chatbot
by
Alex5723
3 days, 4 hours ago -
New PC transfer program recommendations?
by
DaveBoston
1 day, 9 hours ago -
Windows 11 Insider Preview Build 22631.5545 (23H2) released to Release Preview
by
joep517
3 days, 8 hours ago -
Windows 10 Build 19045.6029 (22H2) to Release Preview Channel
by
joep517
3 days, 8 hours ago -
Best tools for upgrading a Windows 10 to an 11
by
Susan Bradley
2 days, 20 hours ago
Recent blog posts
- Ben’s excellent adventure with Linux
- Seconds are back in Windows 10!
- WebBrowserPassView — Take inventory of your stored passwords
- OS news from WWDC 2025
- Best tools for upgrading a Windows 10 to an 11
- Master patch listing for June 10, 2025
- 24H2 may not be offered June updates
- June 2025 updates are out
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.