Dim xmlDoc As MSXML2.ServerXMLHTTP30

This line "Dim xmlDoc As MSXML2.ServerXMLHTTP30" worked when using Access in Win 7 but I get a User-defined type not defined error in Win-10. Am I missing something?

you might be missing that specific msxml2 module's latest dll for windows 10.
also this is an ms sql server forum :wink: