Results 1 to 11 of 11
  1. #1
    Join Date
    Jul 2022
    Posts
    16

    Access with OutLook Reminder or New Appotiment Capability

    I have a page that has a series of dates. I am wondering if I could turn each label into a "button" or a "link" that would open up Microsoft Outlook and take that date to start a "New Appointment for me. Lets say 8:00 am - 8:30am by taking the date entered in the data below the label and using that date in Outlook. So I just click, click click and its all entered in.



    In addition if could in the Title put the company name and address. I don't know if this far above what access can do. Asking to see how far I can take this.

  2. #2
    Minty is offline VIP
    Windows 10 Office 365
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,003
    Access using VBA and Outlook Automation can create Appointments, Meetings, Calendar entries, and even emails

    There are sample codes knocking about, if you get utterly stuck post back and I'm sure we can track them down.
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  3. #3
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,566
    Hi
    The attached is an Outlook Calendar created by Peter Hibbs & MajP

    Just double Click on any date and it Pops up a Form for you to set the Appointment details
    Attached Files Attached Files
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

  4. #4
    Minty is offline VIP
    Windows 10 Office 365
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,003
    @ Mike - I think the OP wanted to create Outlook appointments not a Access calendar, but I could be wrong?
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  5. #5
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,938
    Quote Originally Posted by Minty View Post
    @ Mike - I think the OP wanted to create Outlook appointments not a Access calendar, but I could be wrong?
    That was my thoughts as well.

    https://www.google.com/search?q=crea...hrome&ie=UTF-8

    https://www.youtube.com/results?sear...ent+access+vba
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  6. #6
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,566
    Sorry my mistake
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

  7. #7
    DMT Dave is offline VIP
    Windows 10 Access 2016
    Join Date
    May 2018
    Posts
    1,195
    Is it this kind of target ?

    Code:
     Dim olobj As Object, oloappt As Object
    Dim apptBody as String
    Dim dtApptDate as Date, dtApptTime as Date
    
    Set olobj = CreateObject("Outlook.Application") 
    Set oloappt = olobj.CreateItem(olAppointmentItem)
        apptBody = "My Appointment:||" & TextLine1 or String & "||" & "Date: " & Format(dtApptDate, "dddd-dd-mmm-yyyy") & "||" & _
        "Time: " & Format(dtApptTime, "hh:nn")
    
        With oloappt
            .Start = Nz(dtAppttDate, "") & " " & Nz(dtApptTime, "")
            .subject = "Add Appointment Subject " & " " & "Appointment " & dtApptDate & " " & dtApptTime, these are 
            .ReminderMinutesBeforeStart = 10080
            .ReminderSet = True
            .Location = "Add Your Location"
            .Body = Replace(apptBody, "|", vbCrLf)
            .Save
            .Close (olSave)
        End With
    Set olappt = nothing
    Set olobj = Nothing
    Hope this helps, as all guy's on here are so helpful to me, i am thinking this maybe a starting point

  8. #8
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,938
    Dave,
    Does that actually work? as I thought you could not use object constants if late binding?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  9. #9
    DMT Dave is offline VIP
    Windows 10 Access 2016
    Join Date
    May 2018
    Posts
    1,195
    @WGM, it's what i use for interviews, this is only the section to add the appt

    i have sent some interviews out today using it and they are saved on my ol calendar, it pops up immediately to confirm the appointment.

    the full code isn't pasted on here but thats the part that sets an app on ol, certainly works for me

  10. #10
    DMT Dave is offline VIP
    Windows 10 Access 2016
    Join Date
    May 2018
    Posts
    1,195
    I didn't post date, time and mail body but that can be added by an inputbox or text box i guess

    for me dtapptDate is an inputbox asking for appointment date
    dtappttime is an input asking for appt time using 24hr clock
    apptBody is a string something like:

    Hello, having read your CV | = new line
    i am pleased to offer you an interview on dtapptdate at dtappttime

  11. #11
    DMT Dave is offline VIP
    Windows 10 Access 2016
    Join Date
    May 2018
    Posts
    1,195
    There is an email that goes out to the recipient prior to this, this is the part that saves to ol calendar

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Set Outlook Reminder to 1 Day
    By DMT Dave in forum Access
    Replies: 1
    Last Post: 04-16-2019, 02:11 AM
  2. Help with Access capability
    By behamout in forum Access
    Replies: 3
    Last Post: 06-07-2016, 11:46 PM
  3. Replies: 3
    Last Post: 04-02-2014, 02:30 AM
  4. Replies: 20
    Last Post: 06-27-2012, 02:19 PM
  5. Replies: 16
    Last Post: 06-21-2012, 10:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums