Hi,
When trying to collect information from our Active Directory some users gets
these messages.
Internet Explorer:
An Active X control on this page might be unsafe to interact with other
parts of the page. Do you want to allow this action?
Microsoft Office InfoPath:
A run-time error has occured.
Do you want to debug?
The following error occurred:
ActiveX component can't create object: 'GetObject'
File:script.vbs
Line:36
This is my code:
"Sub XDocument_OnLoad(eventObj)
Set sysinfo = CreateObject("ADSystemInfo")
Set oUser = GetObject("LDAP://" & sysinfo.UserName & "")
On Error Resume Next
End Sub"
Any ideas on how to solve this?
Regards,
Hans
Kalyan Reddy - 02 Jun 2006 13:14 GMT
Hi Hasse,
Try with the DeleteAll method. This collects all the Errors and delete all
them.
XDocument.Errors.DeleteAll();

Signature
Kalyan Reddy
Visit http://www.autonomysystems.com
> Hi,
>
[quoted text clipped - 22 lines]
> Regards,
> Hans