title: how to send image path in includepicture field using vba
body: <p>I have an access database which has a form. There is a submit button in this form. When I clicked this button, I'm running some vba codes. If all codes are running successfully, I'm creating ms word document with docvariables. So I want to send image path in includepicture field, to do this I wrote this codes</p>
  
  <pre><code>{INCLUDEPICTURE {DOCVARIABLE PICTURE}\* MERGEFORMAT}
  </code></pre>
  
  <p>I'm using this above code in my word document. These are my vba codes, I'm getting image path in my access database table.</p>
  
  <pre><code>  Dim imgPath As String
    Dim imgName As String
    Dim imgPath_rp As String
    Dim db_image As DAO.Database
    Dim rs_image As DAO.Recordset
  
      Set db_image = OpenDatabase("C:\Users\ftk1187\Desktop\Test WS_11-Jun-2018 - Copy.mdb", False, False, "")
      Set rs_image = db_image.OpenRecordset("SELECT * FROM TableSıgnature WHERE ImageName = '" &amp; Me.Combo474.Value &amp; "'", dbOpenDynaset)
  
  
      If Me.Combo474.Value = rs_image!ImageName Then
          imgPath = rs_image!imagePath
      End If
  
      imgPath_rp = Replace(imgPath, "\", "\\")
  
    rs_image.Close
    Set rs_image = Nothing
    db_image.Close
  
    objDOC.Variables("PICTURE").Value = imgPath_rp
  </code></pre>
  
  <p>When I click submit button, it gives me no error but the image can't displayed.</p>