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

Automation Error: Catstrophic Failure [Long]

Our Access 97 database is a single-file (non-splitted, pure Access)
hosted no a network server, accessed regularly by a handful of users
around the office.

Until recently (until the Great Blackout, actually), there have been
no problem with the database. It seems to handle simultaneous users
fine and did not cause any grief. The blackout corrupted the DB, but
we restored a pre-blackout version, so everything was good for a
while.

We did notice though, that ever since the black out, the database has
been experiencing various problems. Usually little things that
Compact / Repair would fix, but every now and then, we would have
unfixably corrupted forms / reports, and we would have to import
working versions of them from an older backup in a blank database.

Just recently, we experienced the weirdest problem yet. The users
were chugging along nicely when all of a sudden, they would boot up
the DB and be confronted with an "Compile Error: Automation Error".
The code would break in the Switchboard, on the line "Dim dbs As
Database". Several forms / reports would also not function when
opened manually from the DB window.

I did some searching on this, and found some instances where broken
references were the cause of grief, so I checked Tool --> References,
but everything seemed okay: the usual 3 libraries were checked off,
and the DLL files seem to be present and accounted for.

Now here is the great part, I try importing all the objects into a
blank database, and when I reach certain items, I get the scariest
error I've seen as a young programmer: "Automation Error: Catastrophic
Error"! A form and a report also fail to import with "Unexpected
Error (35012)". Funny enough, the swithboard imported and functions
without problems.

Does anyone know what is wrong with my database? Would splitting the
database alleviate these issues? Why does the database have problems
all of a sudden?

Thank you for taking your time and reading this monstrous post. I'm
rather rattled by this. Any comments / suggestions would be greatly
appreciated.
Nov 12 '05 #1
2 4319
Not a "monstrous" post at all! Everything you say is relevent & to the
point.

As others will doubtless confirm, splitting the database is good for many
reasons. I think that reducing corruption, is one of them. You have a single
BE db on the server, with all of the tables but none of the code, then a
seperate copy of the FE db on each user's PC, with all of the code, & links
to the tables in the BE db.

Facilitating code updates is another good reason for splitting the db. You
just copy the new FE db over each of the old ones. The data stays untouched
in the BE db.

You will find tons more info. on db splitting by searching google groups.

As for the automation errors, I'm not sure what they would be. If I were
you, I would repeat the "import into a new blank database" thing until
everything imported ok, with no errors at all. Then split *that* db, & take
it from there.

HTH,
TC
"Andante.in.Blue" <6p*******@sneakemail.com> wrote in message
news:a8**************************@posting.google.c om...
Our Access 97 database is a single-file (non-splitted, pure Access)
hosted no a network server, accessed regularly by a handful of users
around the office.

Until recently (until the Great Blackout, actually), there have been
no problem with the database. It seems to handle simultaneous users
fine and did not cause any grief. The blackout corrupted the DB, but
we restored a pre-blackout version, so everything was good for a
while.

We did notice though, that ever since the black out, the database has
been experiencing various problems. Usually little things that
Compact / Repair would fix, but every now and then, we would have
unfixably corrupted forms / reports, and we would have to import
working versions of them from an older backup in a blank database.

Just recently, we experienced the weirdest problem yet. The users
were chugging along nicely when all of a sudden, they would boot up
the DB and be confronted with an "Compile Error: Automation Error".
The code would break in the Switchboard, on the line "Dim dbs As
Database". Several forms / reports would also not function when
opened manually from the DB window.

I did some searching on this, and found some instances where broken
references were the cause of grief, so I checked Tool --> References,
but everything seemed okay: the usual 3 libraries were checked off,
and the DLL files seem to be present and accounted for.

Now here is the great part, I try importing all the objects into a
blank database, and when I reach certain items, I get the scariest
error I've seen as a young programmer: "Automation Error: Catastrophic
Error"! A form and a report also fail to import with "Unexpected
Error (35012)". Funny enough, the swithboard imported and functions
without problems.

Does anyone know what is wrong with my database? Would splitting the
database alleviate these issues? Why does the database have problems
all of a sudden?

Thank you for taking your time and reading this monstrous post. I'm
rather rattled by this. Any comments / suggestions would be greatly
appreciated.

Nov 12 '05 #2
Thanks cafe. I just split the database and reimported all the objects
into a refresh front end for further development; so far so good
*crosses fingers*

The thing I've noticed is that the FE ends up being relatively
small... only 2.6 MB on compact, compared to the 17MB of tables in the
BE. Now, if network problems conspired to the corrupt the DB, I would
think that the chances of corruption in a table would be greater than
corruption of the forms. But -- quite fortunately -- we haven't
experienced any data lost yet (except perhaps a bit of code from an
irretrievable form). Now, I'm not complaining, mind you :) I'd much
rather rebuild a form than lose a table. I'm just wondering why this
is happening (so at least I can reassure myself that this won't happen
again).

Alan
Nov 12 '05 #3

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

Similar topics

7
by: SÁRINGER Zoltán | last post by:
Hello! I have an ASP page using Jet 4.0 oldeb provider for mdb. (ADO 2.8). I use the _same_ code in ASP from my well working VB application. The problem is: when I do the same "SELECT * FROM...
25
by: Neil Ginsberg | last post by:
I have a strange situation with my Access 2000 database. I have code in the database which has worked fine for years, and now all of a sudden doesn't work fine on one or two of my client's...
13
by: Thelma Lubkin | last post by:
I use code extensively; I probably overuse it. But I've been using error trapping very sparingly, and now I've been trapped by that. A form that works for me on the system I'm using, apparently...
2
by: Andrew Cranwell | last post by:
Hi, Please redirect me if I am in the wrong group for this question... this is my first post to this group, so I hope it is clear! I am working on an automation project in VB.NET and have to...
12
by: Tomas | last post by:
Hi, I have worked with VB.NET for half a year (semi-newbie). Currently I am looking around for some books for those that crossed the starting hurdle. There are too many books out there-make...
9
NeoPa
by: NeoPa | last post by:
In VBA (I expect VB would be similar) controlling another Office Application (Automation) can be done using the following steps : Ensure the Reference (VBA Window / Tools / References) has been...
35
by: jeffc226 | last post by:
I'm interested in an idiom for handling errors in functions without using traditional nested ifs, because I think that can be very awkward and difficult to maintain, when the number of error checks...
4
by: dancer | last post by:
I get this error if an item in a radiobutton list is not chosen when filling in a form.. I added a RequiredFieldValidator, but I still get the message. Object reference not set to an instance of...
3
by: dancer | last post by:
I am using Framework 1.1.4322. Who can tell me why I'm getting this error? My code follows Compilation Error Description: An error occurred during the compilation of a resource required to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.