Search results

  1. L

    Passing objects as parameter?

    Hi Bob, Thanks for your help. My code now reads (only change is the dim statement you suggested - stupid of me that I did not have that there...) Private Sub ReadInbox() Dim OlApp As Outlook.Application Dim Inbox As Outlook.MAPIFolder Dim InboxItems As Outlook.Items Dim mailObject As variant...
  2. L

    Passing objects as parameter?

    Hi Bob, I tried the variant (changed it both in the dim statement and in the function call). It works to a certain degree. The function now actually gets called, but I hit a snag a bit later. Here is my code so far: Private Sub ReadInbox() Dim OlApp As Outlook.Application Dim Inbox As...
  3. L

    Passing objects as parameter?

    Hi, My first post here. Please be lenient... I am trying to pass an object to a function. I am running through an outlook inbox, and I need to pass an email as an object. The line where I pass the object to the function causes Access to throw me an error: "run time error 424: object required"...
Back
Top Bottom