Thank you. It sounds like the Access 97 database is getting corrupt. We
restored from a few days before and it works fine but we lost the data.
I didn't want to concentrate on the error message because at this stage it
was irrelevant.
My boss was accusing me of blowing up the database by running a query.
Query below.
SELECT DISTINCT OpenCases.ASCI, OpenCases.ASCISequence,
OpenCases.Supervisor, OpenCases.POCName, PCCases.KFName, PCCases.KLName,
PCCases.Relation, PCCases.KDOB, OpenCases.Gender, PCCases.MaritalStatus,
OpenCases.Race, [IntakeKinship Query].FName, [IntakeKinship Query].LName,
IntakeKinship.Race, IntakeKinship.Edu, IntakeKinship.Gender, OpenCases.Name,
OpenCases.LName, OpenCases.DOB
FROM (Index1 RIGHT JOIN ([IntakeKinship Query] RIGHT JOIN (Discharge RIGHT
JOIN (IntakeKinship RIGHT JOIN (OpenCases LEFT JOIN PCCases ON
OpenCases.IntakeChild.CaseID = PCCases.CaseID) ON IntakeKinship.KSSN =
PCCases.KSSN) ON Discharge.CaseID = OpenCases.IntakeChild.CaseID) ON
[IntakeKinship Query].KSSN = PCCases.KSSN) ON Index1.Code =
PCCases.MaritalStatus) INNER JOIN Staff ON OpenCases.Supervisor =
Staff.StaffID
GROUP BY OpenCases.ASCI, OpenCases.ASCISequence, OpenCases.Supervisor,
OpenCases.POCName, PCCases.KFName, PCCases.KLName, PCCases.Relation,
PCCases.KDOB, OpenCases.Gender, PCCases.MaritalStatus, OpenCases.Race,
[IntakeKinship Query].FName, [IntakeKinship Query].LName, IntakeKinship.Race,
IntakeKinship.Edu, IntakeKinship.Gender, OpenCases.Name, OpenCases.LName,
OpenCases.DOB, Discharge.CloseDate
ORDER BY OpenCases.Supervisor, OpenCases.POCName;
--
Is it the times or the Zeitgiest?
Klatuu said:
"I got an error" is like telling the doctor "I feel bad" and expecting to get
the right treatment.
The error number and text would be helpful.
A query can blow up any time it wants to. Two possible causes come to mind.
One is incorrect or corrupt data in the tables. The other is corruption in
your query or form object. That is, you could have some database corruption
going on.
When you say nobody can get in leads me to believe you have multiple users
using the same front end database. This is a very common cause of corruption.
I would suggest reloading the database from your backup. There are also
other ways to attempt to recover from corruption.
The correct configuration for an Access application is to have your database
split. Each user should have a copy of the front end (application objects)
database on their own computers. The back end (tables, relationships,
indexes) should be on a shared folder where all users have full rights.
--
Dave Hargis, Microsoft Access MVP
:
I ran this query (not an update or append) multiple times with no problem.
This one time I got an error and suddenly nobody could get in. It was a
syntax error having to do with a form that I didn't even touch.
so...back to my question:
Is it possible for a query to blow up the database?