Results 1 to 7 of 7
  1. #1
    stu_C is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Mar 2010
    Posts
    38

    Opening Outlook remote desktop

    Hi All
    We are currently in the process of moving our Access database to a RD Web Access - RemoteApp and Desktop Connection, it all works as it should apart from using VBA to open Outlook (outside of the remote connection) and create an Email. anyone have any ideas how we can do this?

    Unfortunately the security levels do not allow outlook to be opened within the remote access so trying to force it open outside of this remote window,
    I currently get a run-time error of '429', ActiveX Component cant create object.



    Code:
    Dim oWo  As Object 'Outlook.Application
        Dim oDoc1 As Object 'Word.Document
        'Set oWd = New Word.Application
        Set myOlApp = CreateObject("Outlook.Application")
        Set myitem = myOlApp.CreateItemFromTemplate(CurrentProject.Path & "\TemplateFiles\PasswordEmail.oft")
    
        myitem.Subject = UCase("HR RECORDS - " & "[" & [Forms]![FRM_TBLALL_FullDetails].[Form]![LblHRRef])
        myitem.To = UCase([Forms]![FRM_TBLALL_FullDetails]![SFRM_TBLALL_STAFFDetails]![SSFRM_TBLALL_INTERVDetails].[Form]![CmbStaffNo].Column(0))
        myitem.display
        
        myitem.body = "Hello" & Chr(13) & Chr(10) & "You will receive an encrypted report and all relevant files required." & Chr(13) & Chr(10) & _
        "Your encryption password is:" & [Forms]![FRM_TBLALL_FullDetails]![SFRM_TBLALL_STAFFDetails]![SSFRM_TBLALL_INTERVDetails].[Form]![Password] 
     End Function

    Last edited by stu_C; 05-09-2023 at 06:40 AM.

  2. #2
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,914
    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

  3. #3
    stu_C is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Mar 2010
    Posts
    38
    Quote Originally Posted by Welshgasman View Post
    Again not sure why this matters, it is on a different site and did not have much luck with help hence posting on here

  4. #4
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,914
    I will repeat what I stated over on the other site.

    Yes, because of that reason.
    People will likely be duplicating the same advice and wasting their time not realising it had been offered elsewhere.
    I know you have not had any responses yet, on either site, but crossposting etiquette still applies.
    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

  5. #5
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,914
    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
    stu_C is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Mar 2010
    Posts
    38
    Unfortunately if I am not able to get the help I need i will post on other forums ones that are more specific to VBA.

  7. #7
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,914
    Quote Originally Posted by stu_C View Post
    Unfortunately if I am not able to get the help I need i will post on other forums ones that are more specific to VBA.
    By all means do, nothing wrong with that, especially as you are not getting any responses, which should tell you something?
    However it is still polite to mention where you have crossposted.

    If you suddenly get responses from one, again that could be duplicating someone else's efforts?

    TBH if you could do what you ask, I would see that as a huge security flaw.
    Perhaps that is why you have not had any responses?

    Might even be worth asking on a MS forum? If anyone should know, it should be them.
    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

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

Similar Threads

  1. Using Access on a Mac through Remote Desktop
    By philsonghurst in forum Misc
    Replies: 3
    Last Post: 06-24-2012, 11:10 AM
  2. Remote Desktop Protocol
    By MaxwellAFB in forum Access
    Replies: 1
    Last Post: 02-10-2012, 12:10 AM
  3. Replies: 2
    Last Post: 09-01-2011, 01:23 PM
  4. Remote Desktop Database Needs Help
    By DianeG in forum Database Design
    Replies: 4
    Last Post: 04-05-2011, 04:25 PM
  5. Access and Remote Desktop
    By pedsys in forum Access
    Replies: 1
    Last Post: 10-08-2010, 10:42 AM

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