Solved

Disk or Network Error

Posted on 1997-04-16
1
184 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
ID: 1425393
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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 utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

932 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

9 Experts available now in Live!

Get 1:1 Help Now