I've run into an issue in which one person on the team receives an error message ("Compile Error: User-defined type not defined") when trying to run the below procedure. Essentially, this is used to create XML files and output them to a directory.
The user running into the error message has a Windows 10 PC, whereas the other people on the team have Windows 7. I'm assuming this has something to do with why it's error'ing out.
The Access DB that the procedure is located in is a .mdb file, though I also copied over the code to a DB in ".accdb" format and the same error message occured.
The Microsoft XML, v6.0 reference is enabled.
Any idea what would cause this to error out for somebody using a Windows 10 machine versus Windows 7? Below is a snippet of the code from this procedure.. the process errors out on the line where the "DOMDocument" object is declared.
Sub createSecAuditXMLOutput1(lngAuditTypeID As Long)
Dim db As DAO.Database
Dim rs As DAO.Recordset
Dim rs1 As DAO.Recordset
Dim RS3 As DAO.Recordset
Dim strFirst As String
Dim objDom As DOMDocument <---- errors out at this line; error message: "Compile Error: User-defined type not defined"