Solved

Disk or Network Error

Posted on 1997-04-16
1
186 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

829 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