?
Solved

Disk or Network Error

Posted on 1997-04-16
1
Medium Priority
?
191 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 600 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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month8 days, 9 hours left to enroll

764 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