Solved

Disk or Network Error

Posted on 1997-04-16
1
187 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…

730 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