A family of Microsoft relational database management systems designed for ease of use.
I can re-create this error on my local machine, using only a single Access file with local tables. I am running Access 2013, on Windows 7 Enterprise 64-bit with SP1. I have two local tables, about 25,000 records each. I am opening table 1 and using a keyfield from that to select one record from the second table. My code looks like this:
While Not NewData.EOF
i = i + 1
Forms![frmStatus]![lblProcess].Caption = "Processing " & i & " of " & NewData.RecordCount & ": " & NewData![LPE ID]
DoEvents
SQLstr = "SELECT * FROM [Control Master] WHERE (([MasterIndex])=" & NewData![MasterIndex] & ");"
Set Archive = db.OpenRecordset(SQLstr)
If NewData![Sales Order No] <> Archive![Sales Order No] Then
Set Archive = Nothing
SQLstr = "UPDATE [Control Master] SET [Sales Order No]='" & NewData![Sales Order No] & "' " _
& "WHERE (([MasterIndex])=" & NewData![MasterIndex] & ");"
DoCmd.RunSQL SQLstr
SQLstr = "INSERT INTO [ChangeList] ( [CPEID], [Sales Order], [Product Code] ) " _
& "VALUES ( '" & NewData![LPE ID] & "', '" & NewData![Sales Order No] & "', '" _
& NewData![Part Code] & "' );"
DoCmd.RunSQL SQLstr
End If
NewData.MoveNext
Wend
After about 1000 records, it fails on the OpenRecordset statement with "Your network access was interrupted..." I have tried it both with and without the status form telling me how many records have been processed. It never fails on the same record. This is a very basic loop and very basic table update. I cannot see how there is anything from the network that would cause this error.