Chuck,
Thanks for the reply. I'm actually calling the function in the debug window
right now. If I run it with no arguments, I get a return of admin users on
my machine, then "true" at the end of the list. When I run it with the
network domain name, all I get is true.
??
"Chuck Grimsby" <c.grimsby@worldnet.att.net.invalid> wrote in message
news:u1kcpvcq1ccdnef4scnaelqv0fbvdlb26t@4ax.com...[color=blue]
>
> Dev's code will work, but it has all it's information routed to the
> debug window. You will want to change that to printing to somewhere
> you can use/see it.
>
> "Function fEnumDomainUsers_Level2" returns a Boolean, which is where
> you're getting that "True" from. Change it's return to "As String"
> and then replace every instance of "Debug.Print" to
> "fEnumDomainUsers_Level2 = fEnumDomainUsers_Level2 & " <whatever> " &
> vbNew line"
>
> Example:
>
> Debug.Print "Home Directory: ", fStrFromPtrW(.usri2_home_dir)
>
> becomes:
>
> fEnumDomainUsers_Level2 = fEnumDomainUsers_Level2 & _
> "Home Directory: ", fStrFromPtrW(.usri2_home_dir) & _
> vbNewLine
>
>
> "Sub sPrintAccountInfo" will also need to be changed to a function
> that returns a string, and debug.print statements changed to
> "sPrintAccountInfo & sPrintAccountInfo & " <whatever> " & vbNewLine"
> in the same method as above.
>
> You will *not* want to return all that information however, so just do
> it on the lines you want to use, then comment out the rest.
>
>
> On Wed, 22 Oct 2003 01:58:51 GMT, "Pat" <pat@noemail.ihatespam.bum>
> wrote:
>[color=green]
> >Hello,
> >Two questions - hence the weird subject.
> >
> >First, anyone had luck with the Enumerating user accounts in a NT Domain
> >module by Dev Ashish on Access Web
> >(
http://www.mvps.org/access/api/api0058.htm). I get "true" as the only
> >return.
> >
> >Also, I am developing my first split database - BE to reside on a file
> >server and the FE to be distributed (and updated with Tony Toews[/color][/color]
incredibly[color=blue][color=green]
> >handy Auto FE Updater). However, in playing with the split today, I
> >realized that the LDB will reside on each user's machine. So, my plans[/color][/color]
to[color=blue][color=green]
> >read the LDB for logged in users is scrapped.
> >
> >For me, the distributed FE far outweighs the advantage of seeing who's
> >logged in. But, I'm hoping that, maybe, there is a trick I haven't yet[/color][/color]
come[color=blue][color=green]
> >across (aside from upgrading to A2K!). ??
> >
> >Any assistance is appreciated.
> >Thanks
> >Pat
> >[/color]
>
>
> --
> A Fanatic Is One Who Can't Change His Mind And Won't Change The[/color]
Subject.[color=blue]
>[/color]