473,394 Members | 1,866 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

File Not Found error when importing forms from another database

I am trying to split up and secure a database that we've been using on
a network for a few years, following the procedure listed in Q304932
from microsoft.
I create a new blank database for the front end, and am able to import
tables and link from the backend. Queries come in ok too. When I
tried to import Modules, forms, and reports, most of them failed with
the error: "File Not Found:
'C:\Document~1\bkeevan\LOCAL~1*\Temp\VB517.tmp' Name conflicts with
existing module, project, or object library."
the help text (Error 53) that come up lists 3 possibilities, the first
being that
the file doesn't exist. I checked, and sure enough it doesn't. I
don't see why I should need this file. Also, curiously enough, when I
keep trying to import the same form, it keeps looking for a different
file in the temp folder.

I am running Access 2002 on a WinXPPro machine.

Can anyone help? Thanks
Brian

Nov 13 '05 #1
4 5119
Brian, this sounds like a corruption. Access is confused about the name of
something.

The fact that the file name changes and this occurs with many objects is
confusing.

Try this sequence:

1. Make a backup copy of the good database (so you get multiple rescue
chances) while Access is NOT running.

2. Close all programs.
Delete all files from your temp folder:
C:\Document~1\bkeevan\LOCAL~1*\Temp
Then run a chkdsk to make sure the drive is fine.
And check the free space on your disk is at least four times the size of
this database file.

3. Open the good database.
Uncheck the boxes under:
Tools | Options | General | Name AutoCorrect
Explanation of why:
http://allenbrowne.com/bug-03.html

4. Compact the database to get rid of this junk:
Tools | Database Utilities | Compact

5. Close Access. Decompile the database by entering something like this at
the command prompt while Access is not running. It is all one line, and
include the quotes:
"c:\Program Files\Microsoft office\office\msaccess.exe" /decompile
"c:\MyPath\MyDatabase.mdb"

4. Open Access, and compact again.

5. Open a code window.
Choose References from the Tools menu.
Uncheck any references you do not need.
For a list of the ones you typically need in your version of Access, see:
http://allenbrowne.com/ser-38.html

6. Still in the code window, choose Compile from the Debug menu.
Fix any errors, and repeat until it compiles okay.
At this point, you should have a database where the name-autocorrect errors
are gone, the indexes are repaired, inconsistencies between the text- and
compiled-versions of the code are fixed, and reference ambiguities are
resolved.

If it is still a problem, the next step would be to get Access to rebuild
the database for you. Follow the steps for the first symptom in this
article:
Recovering from Corruption
at:
http://allenbrowne.com/ser-47.html

If you can pin it down to one particular form or report that is still
problematic, you could try exporting the problematic object using:
SaveAsText acForm, "Form1", "C:\Form1.txt"
and then import into a new database with:
LoadFromText acForm, "Form1", "C:\Form1.txt"
If the SaveAsText option fails, it's usually easiest to rebuild the form
(though you may be able to copy the code from the fail form's module, and
paste it into the new form when you've created it.)

Hope that helps.
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Brian K." <br**********@yahoo.com> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
I am trying to split up and secure a database that we've been using on
a network for a few years, following the procedure listed in Q304932
from microsoft.
I create a new blank database for the front end, and am able to import
tables and link from the backend. Queries come in ok too. When I
tried to import Modules, forms, and reports, most of them failed with
the error: "File Not Found:
'C:\Document~1\bkeevan\LOCAL~1*\Temp\VB517.tmp' Name conflicts with
existing module, project, or object library."
the help text (Error 53) that come up lists 3 possibilities, the first
being that
the file doesn't exist. I checked, and sure enough it doesn't. I
don't see why I should need this file. Also, curiously enough, when I
keep trying to import the same form, it keeps looking for a different
file in the temp folder.

I am running Access 2002 on a WinXPPro machine.

Can anyone help? Thanks
Brian
Nov 13 '05 #2
Thanks for the help -- I will begin trying these now. Sounds like Name
AutoCorrect is a possible culprit.
Brian

Nov 13 '05 #3
Allen,
I went through the steps, except for unchecking references. Apparently
I never had Name AutoCorrect on anyway. So decompiling and recompiling
seemed to do the trick. Thanks

Nov 13 '05 #4
Good news!

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Brian K." <br**********@yahoo.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
Allen,
I went through the steps, except for unchecking references. Apparently
I never had Name AutoCorrect on anyway. So decompiling and recompiling
seemed to do the trick. Thanks

Nov 13 '05 #5

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

Similar topics

11
by: Skc | last post by:
I have a .txt which has been exported as a .csv from an external source. What i need to do is to import this into SQL2000 (into a table) but I need to do special things on the data: 1. I need to...
5
by: Carl | last post by:
Please can anyone tell me how I can create a macro to save the results of a query as an excel file? The query is called Student List and I would like to save it to "My Documents". We have had...
3
by: Serious_Practitioner | last post by:
Hello, all - A few days ago, I posted the following message - Hello all, and thank you for your help in the recent past. Got a new error message in the last few days. While working with...
2
by: kuhni | last post by:
Hi everybody, I am totally desperate because I cannot solve a really simple problem: I have a specific text-file which I want to import into an existing database. The problem is that the columns...
10
by: hendafe | last post by:
I have a problem of importing a text file into Access. The text file will be imported using a delimiter, say ( , ) for example. This should be imported into the database. An example is: John,...
0
by: Andrew Dowding | last post by:
Hi Everybody, I have been looking at problems with my Windows Forms C# application and it's little Jet 4 (Access) database for the last few days. The Windows Forms app implements a facade and...
9
by: semesm22 | last post by:
hello all, i am using asp.net with IIS on a Windows XP machine to open an Access database, and i know that this topic has been posted on forums hundreds of times, but i can't find an answer that...
5
by: Mike Collins | last post by:
I am trying to export data from multiple tables in SQL Server to an XML file so I can then import it to another database. It seems to be working fine for exporting, but I am having trouble...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.