I have an odd problem at the moment. In the last few weeks I have started to get the above error on my development box when modifying a form or report by adding in an ADO connection.
The error appears on the line:
Set mobjConn = UserInfoGet.CreateADOConnection
I can use UserInfoGet to get the IntercompanyID or other values; if I move the code to the client's system the VBA works without problem. It only errors on my development box.