I am using something like the following and it seems to work well. The only thing you have to remember is to reset the position in rsY to the begining before preforming another search (rsY.MoveFirst). I belive the reason this works is that if what you are looking for is not in the recordset...
You might try using WNetAddConnection2, I use this function to map some shared folders and have to use the machines IP address with it, and it works just fine.
Hope this helps.
Here is the function that i have used in C and it should work in VB but I'm not good a translating from C to VB.
The Function is WNetAddConnection2 this allows you to map a drive letter to a shared folder. The definition of this API call is in the Win32 API help file.
Following is the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.