Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

accessing the network drive - problem

Status
Not open for further replies.

Jeevs1

Programmer
Oct 14, 2002
2
US

Hi,
I have a VBA(in MS Access '97) application which does not recogize a share/network drive under some conditions.
The appliaction uses GetPrivateProfileStringA of kernel32.dll to access a file(ini where it reads some details) in a shared M drive.

When I first log into the PC and when I try to run the application this function returns a null value. But now when I terminate the application and go to windows explorer and click on the M: drive manully and then the run the application it starts working fine.

After this the applications works fine. Again the same problem repeats when I try login again to the PC and that to till the manually click the M:\ drive.

OS : Windows NT 4.4.1, 4.5.1, 4.6.1, 4.6.3 and XP.
The share drive is a Win2K server.

Any pointers --> -- > -->-->-->

- Jeevan
 
I have had share problems when the shared drive option to 'Reconnect at Login' is not checked. The drive icon shows up in Explorer and reconnects when you click it.

I'm not sure why you'd have to use the API just to reference a shared drive. You should be able to use "M:\myFile.ini" or "\\Server\Share\Folder\myFile.ini"

VBSlammer
redinvader3walking.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top