I am trying to parse xml data that is in an Access database. When I run this code, I get the same "value" of 10 twice but it should be 10 then 5.
Sub ParseXML(pstrXML As String)
Dim xmlDoc As New MSXML2.DOMDocument
Dim xmlNode As MSXML2.IXMLDOMElement
Dim iPos As Long
Dim sOperations(0 To 1) As String
sOperations(0) = "NumberOfFiles"
sOperations(1) = "NumberOfFolders"
For iPos = LBound(sOperations) To UBound(sOperations)
op = sOperations(iPos)
For Each xmlNode In xmlDoc.childNodes(0).childNodes
If xmlNode.nodeName = "operations" Then
For Each xmlchild In xmlDoc.selectNodes("//reportElement [@reportCode='" & op & "']")
Debug.Print xmlchild.getAttribute("reportCode") & ": " & xmlchild.selectSingleNode("//value").Text
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder.
But why not let Windows retr…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data.
A Microsoft Access subform is used to show relevant calcul…