hi friends i have a problem , how to load a picture to webpage from local drive using JavaScript in VBA in microsoft access i have the following SourceCode From the WebSite and my code my code work fine but when it reach to upload the picture give you an error msg
<td rowspan="5" class="requestphoto">
<img id="image" runat="server" width="150px" height="150px" src='/Omra/GetImage?394620807' />
<div class="t-widget t-upload"><div class="t-button t-upload-button"><span>Select...</span><input id="PersonalPhoto" name="PersonalPhoto" type="file" /></div></div>
<br />
</td>
Option Compare Database
Private Sub Command0_Click()
Dim IE As Object
Set IE = CreateObject("InternetExplorer.Application")
IE.Navigate "https://visa.mofa.gov.sa/Omra/addOmraVisa"
IE.Visible = True
'apiShowWindow IE.Hwnd, SW_MAXIMIZE
Do While IE.Busy: DoEvents: Loop
Do While IE.ReadyState <> 4: DoEvents: Loop
IE.Document.all("ApplicationNumber").Value = 65371771
IE.Document.getElementById("EmbbasyCode").Value = "210"
IE.Document.all("CommandName").Click
IE.Document.getElementById("image").src = "file:///d:\pic\AE5902663" + ".jpg"
Do While IE.Busy: DoEvents: Loop
Do While IE.ReadyState <> 4: DoEvents: Loop
End Sub