Retrive workstation names

  • Thread starter Thread starter john
  • Start date Start date
J

john

Is it possible to get the Microsoft Windows Network Names as they are listed
under the Entire Network of File Explorer. I need them Available by code to
supply a Combobox.

Thank you
 
Sounds like you need the NetServerEnum API call.

Randy Birch has an example of its use at
http://vbnet.mvps.org/code/network/netserverenum.htm

Obligatory warning: Randy's site is aimed at VB programmers. Because there
are significant differences between the controls available for forms in VB
and in Access, many of his examples cannot simply be copied into Access.
Looking at this example, unless you're using Access 2003, the use of the
AddItem method to add the entries to the list box is going to fail.

Do you really need to populate a combo box though? Would it be sufficient to
let them to use the standard Browse For Folder interface? If so, check
http://vbnet.mvps.org/code/browse/browsenetwork.htm or
http://www.mvps.org/access/api/api0002.htm at "The Access Web"
 
Back
Top