>Larry,
>
>When I hit that line of code, I got the error:
>
>"Moniker cannot open file"
>
>K
I forgot. Don't concatenate inside in GetObject. Build a string variable and use it instead.
lcADsPath = 'WinNT://'+alltrim(cDomain)+',domain'
lodomain = GetObject(lcADsPath)
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao