Randy says "NetServerEnum returns, dependant on the bit mask specified,
servers and/or machines that are visible on the local domain". Given that
his sample lists "LAPTOP2000" and "WORKSTATION" as being on the network, I
doubt you'll have any problem. You probably want to change the SV_TYPE_ALL
argument to SV_TYPE_WORKSTATION when calling the function.
What version of Access are you using? As I tried to imply, if you're using
Access 2003 (and possibly Access 2002) , you should be able to take that
code and run it in Access without any issue at all. If you're using an older
version of Access, there are a few options available. One, assuming you
don't have too many machines on the network, is to use Value List for the
RowSourceType property, and list the machines, semi-colon delimited, as the
RowSource property. Another is to store the machines in a table, and use a
query against that table as the RowSource. Lastly, there's the standard
call-back function that can be used to populate a list box or combo box. See
http://msdn.microsoft.com/library/e...owSourceTypeFunctionParameters_HV05187987.asp
for details (don't worry that I picked the Access 2003 version: it's the
same for all versions of Access)
Feel free to post back if you have questions.