I'm running an old VB6 report. When I run it I get Run-time error '429': ActiveX component can't create object.
After clicking ok, I get: Error 2108: An error occurred while executing control script.
I've narrowed it down to in the .rpt object I'm getting the date with =Now(), the page number with ="Page " & rpt.txtPageNumber.DataValue & " of" (so it says "Page 1 of...").
These are Field objects in the report object with the "DataField" property set to those two scripts respectively.
I have tried registering any and all .ocx and .dll files that I have found on while looking for an answer online, but I don't know what file controls these specifically.
The other confusing thing is that in the same VB project I am calling these scripts on many reports in the exact same way, but this is the only report that throws the error. If I remove these scripts on the report, it will run without issue. I would appreciate any direction that anyone can give me.
If you would find any other information helpful to the issue, let me know and I will provide it.
...\Classes\CLSID\{guid}and not finding it. Document the {guid}. - Hans Passant