Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error accessing file. Network connection may be lost

Status
Not open for further replies.

Dan01

Programmer
Jun 14, 2001
439
US
I'm trying to run a function that uses DAO to open an object of the database the code resides in:
Dim myDB As Database
Dim rst, rstTable As Recordset


Set myDB= OpenDatabase("G:\dept\share\My.mdb")
Set rst = myDB.OpenRecordset("qryOutput", dbOpenForwardOnly)
Set rstTable = myDB.OpenRecordset("tblOutput")

When trying to run I get the error in the subject field. Code worked earlier today. Please advise. Thanks, Dan.
 
This could be a number of things. If by any chance, you're running Norton AntiVirus, turn off the scripting option. Ann
 
Thanks Ann. Actually the problem is described in Microsoft Knowledge Base Article 304548 - ACC2000: Error Message: Error Accessing File. Network Connection May Have Been Lost.
The fix is a patch from Microsoft. Dan.
 
I had seen it before. But, my advice about Norton holds true also for this error message.

Glad you found your fix. Ann
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top