473,654 Members | 3,062 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error accessing file?

GCM
I have a database which was created from another parent database by
combining some fields into one field for clerification purposes. When I
create a for with the following command I get this error:

Error accessing file. Network connection may have been lost.

Following is the function I use. Eveything else works fine. This function
worked on the parent database. The form data is linked to the proper table:

-------------------------------------------------
Private Sub Search_Click()
On Error GoTo Err_Search_Clic k
Screen.Previous Control.SetFocu s
DoCmd.DoMenuIte m acFormBar, acEditMenu, 10, , acMenuVer70

Exit_Search_Cli ck:
Exit Sub

Err_Search_Clic k:
MsgBox Err.Description
Resume Exit_Search_Cli ck

End Sub
--------------------------------------------------

Thanks in advance...
gcm
Aug 17 '06 #1
2 2125
First, take off this line:
Screen.Previous Control.SetFocu s

Then, do a repair/compact on the database and try it again. If it
works, try adding that line back into the sub.

GCM wrote:
I have a database which was created from another parent database by
combining some fields into one field for clerification purposes. When I
create a for with the following command I get this error:

Error accessing file. Network connection may have been lost.

Following is the function I use. Eveything else works fine. This function
worked on the parent database. The form data is linked to the proper table:

-------------------------------------------------
Private Sub Search_Click()
On Error GoTo Err_Search_Clic k
Screen.Previous Control.SetFocu s
DoCmd.DoMenuIte m acFormBar, acEditMenu, 10, , acMenuVer70

Exit_Search_Cli ck:
Exit Sub

Err_Search_Clic k:
MsgBox Err.Description
Resume Exit_Search_Cli ck

End Sub
--------------------------------------------------

Thanks in advance...
gcm
Aug 17 '06 #2
GCM
ManningFan,

Thanks for the suggestion, but that didnt work either. When I deleted the
line from the command, nothing would work. Icouldn't save the form or
compact the database. I appreciate your efforts very much.

Thanks,
gcm

"ManningFan " <ma********@gma il.comwrote in message
news:11******** **************@ i42g2000cwa.goo glegroups.com.. .
First, take off this line:
Screen.Previous Control.SetFocu s

Then, do a repair/compact on the database and try it again. If it
works, try adding that line back into the sub.

GCM wrote:
>I have a database which was created from another parent database by
combining some fields into one field for clerification purposes. When I
create a for with the following command I get this error:

Error accessing file. Network connection may have been lost.

Following is the function I use. Eveything else works fine. This function
worked on the parent database. The form data is linked to the proper
table:

-------------------------------------------------
Private Sub Search_Click()
On Error GoTo Err_Search_Clic k
Screen.Previous Control.SetFocu s
DoCmd.DoMenuIte m acFormBar, acEditMenu, 10, , acMenuVer70

Exit_Search_Cl ick:
Exit Sub

Err_Search_Cli ck:
MsgBox Err.Description
Resume Exit_Search_Cli ck

End Sub
--------------------------------------------------

Thanks in advance...
gcm

Aug 19 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2146
by: jim | last post by:
Hi Ng I have got a hughes problem. I have got a file which I have been working on for quite a while. But now suddently no matter what button I am pressing there comes an error saying: Error accessing file. Network connection may have been lost. I have no Idea what this means, and how I can fix it?
1
1821
by: sk | last post by:
Please forgive me if the same topic is already posted. But i havent found I have got an error while accessing the excel file as below. Can somebody reply if there is a solution Access is denied. Exception Details: System.UnauthorizedAccessException: Access is denied. The ASP.NET process is not authorized to access the requested resource. For security reasons the default ASP.NET process identity is '{machinename}\ASPNET', which has limited...
0
2257
by: Joergen Bech | last post by:
Fairly new to ASP.NET 1.1. Getting the error below when running application on a web server outside of my control, but only the first time I run it: 1. After a long period of inactivity (or updating the code-behind dll) accessing any aspx page in the application causes the application to run for the first time. Some of the initialization involves reading and writing some text and xml files using simple streamreader and streamwriter...
13
3904
by: JebBushell | last post by:
"Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. " This is happening when I ry to process an aspx in my default directory (inetpub\wwwroot). Well, I'm viewing it on the local machine so why is it...
2
390
by: Terry Holland | last post by:
I posted a follow up to an earlier post but did not receive response so here it is again (with original post and response) > This could be because you are running the index service over this web > application. try to stop indexing this application (from IIS management > console, clear "Index this resource") or stop the index service to test if > you still get error or not. I removed this option but still get the error. The error...
4
6105
by: Kaush | last post by:
Hi all, I am creating a webservice to accept SOAP messages, parse the message and send a SOAP response back to the client accessing my web service using WSE-2 in ASP.NET. I am creating a class which derives from "SoapReceiver" class and do the processing here. To register this class by using the HTTP protocol, I am editing the "web.config" file. I am adding an "add" element to this config file as follows: <httpHandlers>
5
3623
by: snicks | last post by:
I'm trying to exec a program external to my ASP.NET app using the following code. The external app is a VB.NET application. Dim sPPTOut As String sPPTOut = MDEPDirStr + sID + ".ppt" Dim p As New System.Diagnostics.Process 'p.Start(MDEPDirStr & "macrun.exe", sPPTOut) p.Start("C:\WINDOWS\SYSTEM32\CALC.EXE") 'p.Start("C:\WINDOWS\SYSTEM32\macrun.exe", sPPTOut)
8
10986
by: MikeJ | last post by:
In my office, we have workstations with standard Win 2000 images (OS plus standard apps like Office, etc.) as developers, we then install our development tools on top of those images. other developers in my office have installed VS8 and use it with no problems. however, on a new workstation that I recently got, I have installed VS8, and get this error whenever I try to access a C# project or create a new C# project: "Project 'XYZ'...
2
2145
by: le0 | last post by:
guys, this is my first time to deploy website to the server, but every time i access the page this error always appears. --------------------------------------------------------------------------------------------- Server Error in '/sample' Application. -------------------------------------------------------------------------------- The Microsoft Jet database engine cannot open the file
2
14110
by: contractsup | last post by:
Environment: $ uname -a AIX <withheld2 5 000100614C00 $ db2level DB21085I Instance "<withheld>" uses "32" bits and DB2 code release "SQL08024" with level identifier "03050106". Informational tokens are "DB2 v8.1.1.104", "s060120", "U805924", and
0
8290
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8708
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7307
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6161
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5622
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4294
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2716
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1916
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1596
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.