473,396 Members | 1,725 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,396 software developers and data experts.

Error message running query : Can not open database

Hello everyone,

I'm running a Make-Table Query in Access. They was working fine up intill an hour ago and suddenly now that I'm running the query , I keep getting this error message:

Can not open Database 'Query 1'. This may not be a database that your application recognizes, or the file maybe corrupted.


And if I close access and reopen it , sometimes it works fine then but sometime it gives error again.

Please advise
Jun 15 '10 #1
6 13925
patjones
931 Expert 512MB
I would take a cue from the error message and first consider corruption as a possibility.

A simple remedy for this is to open a new (blank) Access database, import all of your objects (forms, reports, queries, etc.) into this new database, and see if the problem still persists. If it does, then at least you can eliminate corruption as a possibility.

Pat
Jun 15 '10 #2
How can I export all the forms, tables, queries and reports all together?
Jun 15 '10 #3
I exported that problematic query to blank database as you said, and it worked perfectly fine. Thanks
But I still don't know how to export ALL of my objects in one shot.

Please advise,
Jun 15 '10 #4
patjones
931 Expert 512MB
In the new file, you'll do External Data > Import... if you are using Access 2007. Earlier versions of Access have a menu option somewhere for bringing external data or objects into the current file.

Anyway, a dialog will come up allowing you to navigate to the old file and select it. When you do, you'll just select everything in the list that comes up and import it all. If it is a corruption issue, which does happen from time to time with Access, this should fix it.

Pat
Jun 15 '10 #5
You're awesome, I did imported all the objects, and it's working perfectly fine now.
Thanks a lot for you fast help.
Jun 15 '10 #6
NeoPa
32,556 Expert Mod 16PB
Just as a caveat, although most of a database is held within its importable objects, there are values (of greater or lesser importance depending on your views) which are not associated with these items which will not be replicated with this procedure. It is often not very important in my experience, but can be sometimes.

As another alternative (generally worth trying first and only proceeding on to the multi-object import if you don't find that it solves your problems), you can choose to do a Compact and Repair from your Tools / Database Utilities menu.

It is always worth keeping copious backups when working in Access to give you options to revert to a known working status for any object that may be corrupted beyond repairing or importing.

Good luck.
Jun 16 '10 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Ralph Noble | last post by:
Any advice from the crowd? Every time I try to run "Copy Database Wizard" I get an error message saying I must be a member of the sysadmin group and have permission to copy files over the network....
1
by: ANSWER | last post by:
Hi, I have Win 2000 Pro with service pack 4 and Access 2003. I stoll get the message when I try to open database: This file may not be safe if it contains code that was intended to harm your...
4
by: Ray | last post by:
I am running a database on a file server from a pc operating Windows XP Pro. MS Office 2003 is used. When I open the database, below error message appears. The expression On Click you entered...
0
by: Holly Cross | last post by:
I have a report that uses several subreports. The report looks fine in print preview, but when I send it to the printer, I keep getting this message "Cannot open any more databases." This happened...
3
by: robertmeyer1 | last post by:
Hey I'm gettitng the following error message: Too Many Fields Defined. But I only have 6 fields in the query. I created a query based off of 2 others which are in turn based off 2 others. I...
1
by: Bob | last post by:
Hi all, I've created a database at work and have copied it to home but have had some problems when I try to open the main form. The error when I run it is: Compile error: Can't find project...
3
by: Tim Streater | last post by:
I have this script of a few lines, which runs as expected when I do it from the command line. It does one select followed by one insert on an SQLite database. The db in question has permissions...
5
by: Manikrag | last post by:
Hi Team, I have copied one ASP.NET application on a new server and configured it all.Now I am getting below error when I am trying to authenticate users thru LdapAuthentication function. This...
4
by: student2 | last post by:
Hi :-) I've designed a query that gathers its information for two tables:- 1)Author and 2) Category My selection criteria for this query is Author.AuthorName and Category.CategoryName .
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: 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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...
0
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,...

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.