title: Object Required - error 424 MS ACCESS 2010
body: <p>I'm really new at VBA but I have this same code in another database, and now I've just copied the code and paste in another database but I get this Object Required error in the last line.
  The code is bigger but I've just stopped on the line where I get the error.</p>
  
  <pre><code> Dim frm As Form, ctl As Control
   Dim varItm As Variant
   Dim stgMO, stgPID, stMail, stgMailCC As String
   Dim Question As Long
   Dim OutApp, OutMail As Object
  
   Set frm = Forms!Overview
   Set ctl = frm!cl_onboarding
  
   stgMO = ctl.Column(7)
   stgPID = ctl.Column(2)
   stgMail = ctl.Column(8)
   stgMailCC = ctl.Column(9)
  
  Question = MsgBox("Do you want to send an e-mail containing the codes for this Agent?", vbYesNo, "Send e-mail")
  If Question = vbYes Then
  
      Set OutApp = Outlook.Application
  </code></pre>