Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Developer Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
iCalendar
Timothy Smith 
        
2 years ago
How do we make an iCalendar card to send in an email from table information? The iCalendar gets forwarded by an email.  I have used the Calendar video to build my tables and form.  Now I want to be able to send calendar cards (it would be nice to build business cards or contact cards as well) like Outlook does from my event form by pressing a button called "send to client".
Timothy Smith OP  @Reply  
        
2 years ago

Timothy Smith OP  @Reply  
        
2 years ago

Alex Hedley  @Reply  
           
2 years ago
If you open an calendar event in Notepad you should see something like

Just fill in the values with the data from your db and attach it with the correct file ext.
The PRODID differs depending on whether it's MS, Apple, Google etc.


BEGIN:VCALENDAR
VERSION:2.0
PRODID:
BEGIN:VEVENT
DTSTART:
DTEND:
SUMMARY:
DESCRIPTION:
END:VEVENT
END:VCALENDAR
Kevin Yip  @Reply  
     
2 years ago
Even though it's in plain text, its content could get really complicated if there is lots of info in the item.  It's much easier (relatively speaking) to create it with Outlook VBA (via automation from Access).  I'll post some info later.
Kevin Yip  @Reply  
     
2 years ago
Let's say I have three appointments: two for 8/23/24, and one for 8/24/24.  See picture below.  And I want to forward just the 12pm appointment for 8/23/24 to other people.

(To be continued.)
Kevin Yip  @Reply  
     
2 years ago

Kevin Yip  @Reply  
     
2 years ago
There is a trick involved.  Even though the Outlook ribbon lets you forward an appointment as an iCalendar file and attach it to an email automatically (see picture below), Outlook VBA doesn't let you do that.  With Outlook VBA, you have to do the two steps separately: (1) save an appointment to an .ics file, then (2) create a new email and attach the .ics file.

(To be continued.)
Kevin Yip  @Reply  
     
2 years ago

Kevin Yip  @Reply  
     
2 years ago
Below is the VBA, written in Access, that uses automation to control what is done in Outlook.  Add the Outlook object library reference as shown.  The VBA code below does the following: (1) retrieves all appointments in the default calendar, (2) filters out only the appointments in 8/23/24, and (3) create an .ics for the appointment with the title "12pm appointment".

After creating the .ics file, you can then do what Richard's email seminar has taught you and send a new email with the attachment.
Kevin Yip  @Reply  
     
2 years ago

Timothy Smith OP  @Reply  
        
2 years ago
Thank you Kevin and Alex!
Richard Rost  @Reply  
           
2 years ago
Cool stuff. Thanks for sharing, Kevin.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Developer Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/6/2026 10:20:59 PM. PLT: 1s