Solved

Disk or Network Error

Posted on 1997-04-16
1
183 Views
Last Modified: 2012-05-04
I keep getting the error, "Disk or Network
Error", whenever I try to access a form in my project (at run-time)
that has data controls on it. I recently moved from Win95 to NT4 for
development. I still distribute on Win95 and this is where the
error occurs. I've read in MS's KB that I need to set the
enviroment variable, "c:\winnt35\temp" but I'm not distributing
in NT. If I try to set the variable with the same statement as
above in Win95, Win95 defaults to it's own, "c:\windows\temp."

BTW, I never had this problem until I moved to NT. MS's KB says
it's related to NT. Any suggestions?
Thanks,
Brett
0
Comment
Question by:Brettr
1 Comment
 
LVL 1

Accepted Solution

by:
PC-Alex earned 200 total points
Comment Utility
Brettr, the error you receive sounds like a drive / path-name is not valid. Did you check the properties of the data controls, if the "Database"-drive and path do exist ? Did you try to open the database that is given there, e.g. with a database maintenance software ?
The message "Disk or Network error" sounds heavily like an access try to a Floppy disk that isn't available or a network path that's not valid. Did you change any drive names when moving to NT4 ? CD-ROM for example ?
Did I understand you right that it works under NT, but in Win95 the error occurs? Is the hard drive of your database now NTFS formatted and you have problems in Win95 ?
If all this is not the case:
Try to set the "Database" - property empty, and filling this property in every Form_Load() by the following code:
Set DataX.Recordset = MainForm.DatabaseX.OpenRecordset("TableName")

where you have one MainForm with the Database open.

0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now