I am currently designing a database, using Access 2003 running on
Windows Vista Premium Home.
The database file format is Access 2002 / 2003 (mdb). The database is
stored on a 1Gb USB memory stick so that I can work on it anywhere
without having to keep updating it on various machines. The disk has
never had any other errors, all other files are fine, it has plenty of
space and checkdisk reports no errors.
The database is split between a back end (not many records yet - a
file-size of about 1mb) and a front end with about 60 forms (inc
subforms) and about 40 queries. There is also a fairly large amount of
code, split between the various form modules and 7 standard modules.
The total front end size is about 3mb.
Until recently, everything has run smoothly, albeit with occasional
compile and logic errors as might be expected. I am therefore
currently going through each form, ironing out these bugs, improving
the code and generally tidying up. However, in the past week the
database has begun to crash. As an example, I finished work on it at
around 5.20 last night, tested that the work I'd done was behaving as
expected, and was happy that everything worked. This morning, opened
the db, opened various forms without problems, then tried to open one
called frmContacts. As soon as I did, I got the dreaded "Access has
stopped working. Please wait while we gather more information..."
message. All other forms were fine, that form was fine yesterday.
Closing the DB, then re-opening it, compacting and repairing, re-
compiling the VBA... none of this helped. Trying to access the module
for frmContacts caused the same problem.
I also had this problem earlier in the week. It was a completely
different form that caused the issue, but the symptoms were
identical.
In both cases, I have found that there is one solution. Create a
new .mdb file, and import all the objects from the "faulty" database.
This resolves the issue and I can continue working as though nothing
had happened. However, there is one last point of note. When importing
all the objects into a new database, everything runs smoothly until it
tries to import a standard module called "modUtiliti es". This is not a
module I have changed recently (probably last changed it about 6 weeks
ago), and it contains nothing complex or unusual. But when trying to
process this module, on both occasions the import has hung. The light
on the memory stick that indicates data transfer keeps flashing, and
pressing CTRL-Break makes no difference. Ultimately, after waiting for
about 10 minutes, I removed the memory stick. At that point the
transfer stopped (funnily enough!) and the "new" database worked fine
- including the full module modUtilities, which had imported fully.
Does anyone have any ideas why this might suddenly have started
happening, and more to the point, what I might be able to do to
prevent it happening in the future? I don't think the problem is with
modUtilities, but if it would help I'm happy to post it....
Thanks in advance
Andrew 8 2884
Andrew, there's a range of possible issues here.
The unusual one is that you are working directly on a USB drive. The trouble
with that is that if the USB stick is bumped or removed before Windows has
finished writing, the database will be corrupted. If everything worked
perfectly, and you always used closed Access first, and then the "Stop" icon
in the system tray to unmount the drive, this should not occur. But I
wouldn't trust it. Copy to hard disk. Work on it there, and copy back to the
USB again afterwards. As a side-benefit, you have a backup that way too.
As for what corrupts the database, it is usually an interrupted write. For
suggestions on how to avoid it, see:
Preventing Corruption
at: http://allenbrowne.com/ser-25.html
There's a list of things to work through there.
Don't take any of the 13 items for granted.
--
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.
"Andrew" <an************ *@yahoo.co.ukwr ote in message
news:11******** **************@ n59g2000hsh.goo glegroups.com.. .
>I am currently designing a database, using Access 2003 running on
Windows Vista Premium Home.
The database file format is Access 2002 / 2003 (mdb). The database is
stored on a 1Gb USB memory stick so that I can work on it anywhere
without having to keep updating it on various machines. The disk has
never had any other errors, all other files are fine, it has plenty of
space and checkdisk reports no errors.
The database is split between a back end (not many records yet - a
file-size of about 1mb) and a front end with about 60 forms (inc
subforms) and about 40 queries. There is also a fairly large amount of
code, split between the various form modules and 7 standard modules.
The total front end size is about 3mb.
Until recently, everything has run smoothly, albeit with occasional
compile and logic errors as might be expected. I am therefore
currently going through each form, ironing out these bugs, improving
the code and generally tidying up. However, in the past week the
database has begun to crash. As an example, I finished work on it at
around 5.20 last night, tested that the work I'd done was behaving as
expected, and was happy that everything worked. This morning, opened
the db, opened various forms without problems, then tried to open one
called frmContacts. As soon as I did, I got the dreaded "Access has
stopped working. Please wait while we gather more information..."
message. All other forms were fine, that form was fine yesterday.
Closing the DB, then re-opening it, compacting and repairing, re-
compiling the VBA... none of this helped. Trying to access the module
for frmContacts caused the same problem.
I also had this problem earlier in the week. It was a completely
different form that caused the issue, but the symptoms were
identical.
In both cases, I have found that there is one solution. Create a
new .mdb file, and import all the objects from the "faulty" database.
This resolves the issue and I can continue working as though nothing
had happened. However, there is one last point of note. When importing
all the objects into a new database, everything runs smoothly until it
tries to import a standard module called "modUtiliti es". This is not a
module I have changed recently (probably last changed it about 6 weeks
ago), and it contains nothing complex or unusual. But when trying to
process this module, on both occasions the import has hung. The light
on the memory stick that indicates data transfer keeps flashing, and
pressing CTRL-Break makes no difference. Ultimately, after waiting for
about 10 minutes, I removed the memory stick. At that point the
transfer stopped (funnily enough!) and the "new" database worked fine
- including the full module modUtilities, which had imported fully.
Does anyone have any ideas why this might suddenly have started
happening, and more to the point, what I might be able to do to
prevent it happening in the future? I don't think the problem is with
modUtilities, but if it would help I'm happy to post it....
Thanks in advance
Andrew
On Mar 22, 10:23 am, "Allen Browne" <AllenBro...@Se eSig.Invalid>
wrote:
Andrew, there's a range of possible issues here.
...........
As for what corrupts the database, it is usually an interrupted write. For
suggestions on how to avoid it, see:
Preventing Corruption
at: http://allenbrowne.com/ser-25.html
There's a list of things to work through there.
Don't take any of the 13 items for granted.
Allen,
Thanks very much for the pointers. It may be that it was somehow
caused by an interrupted write, although I'm not sure when that would
have happened as I'm pretty careful about the various things that can
cause it. Nonetheless, some useful ideas, and I will move the db onto
the hard disk (I have various backups on HDD anyway).
Regarding your page on preventing corruption, can you point me in the
direction of finding more information on the SaveAsText and
LoadFromText commands? Also, how do I decompile the VBA in a database?
Thanks again for your help - much appreciated.
Andrew
>Also, how do I decompile the VBA in a database?
during development, I assume that you *frequently* do a compact and repair.
When working on code, if you modify some code, I usually hit a ctrl-s to
save
the code.
I then go debug->compile (alt-d, enter key occurs so often I don't even
think about it).
Also, I assume you turned off track-auto name correct.
You can build a short cut to do the de-compile..but, that a big hassle.
I would suggest that you download the registry entries here: http://www.members.shaw.ca/AlbertKal.../accessreg.reg
After you install he above registry entries, you can right click on mdb
file..and you see two new options (compact and decompile).
Remember, when you do a de-compile, if you have any start-up forms..make
sure you hold down the shift key...(and, I would suggest you exit right
after you do the de-compile).
--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada pl************* ****@msn.com
"Albert D. Kallal" <Pl************ *******@msn.com wrote in
news:1DtMh.4945 1$DN.1217@pd7ur f2no:
When working on code, if you modify some code, I usually hit a
ctrl-s to save
the code.
I then go debug->compile (alt-d, enter key occurs so often I don't
even think about it).
Now, that's interesting. I compile first, and *then* save, because I
don't want to discover a code error *after* I've saved. I also have
always assumed that SAVE saves both the code and the compilation. Am
I wrong on that?
--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
"Albert D. Kallal" <Pl************ *******@msn.com wrote in
news:1DtMh.4945 1$DN.1217@pd7ur f2no:
You can build a short cut to do the de-compile..but, that a big
hassle.
???
I keep a shortcut on my desktop for each version of Access that
doesn't specify the database. So, when I execute it, I'm prompted to
open a database, and it gets decompiled.
Where's the hassle in that?
--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Andrew,
Just one more idea. I version the database extensively when modifying code
for this very reason - sometimes 3 or 4 versions in one day. It has saved me
from some "unexplaine d" errors a number of times.
-- Bill
"Andrew" <an************ *@yahoo.co.ukwr ote in message
news:11******** **************@ p15g2000hsd.goo glegroups.com.. .
On Mar 22, 10:23 am, "Allen Browne" <AllenBro...@Se eSig.Invalid>
wrote:
>Andrew, there's a range of possible issues here.
..........
>As for what corrupts the database, it is usually an interrupted write. For suggestions on how to avoid it, see: Preventing Corruption at: http://allenbrowne.com/ser-25.html There's a list of things to work through there. Don't take any of the 13 items for granted.
Allen,
Thanks very much for the pointers. It may be that it was somehow
caused by an interrupted write, although I'm not sure when that would
have happened as I'm pretty careful about the various things that can
cause it. Nonetheless, some useful ideas, and I will move the db onto
the hard disk (I have various backups on HDD anyway).
Regarding your page on preventing corruption, can you point me in the
direction of finding more information on the SaveAsText and
LoadFromText commands? Also, how do I decompile the VBA in a database?
Thanks again for your help - much appreciated.
Andrew
Now, that's interesting. I compile first, and *then* save, because I
don't want to discover a code error *after* I've saved. I also have
always assumed that SAVE saves both the code and the compilation. Am
I wrong on that?
No, you not wrong at all....
I tend to use ctrl s....even when not compiling. Just a habit of mine....
I do as a habit hit alt-d enter...then ctrl-s (I just entered into the code
editor..and tried what I been doing for 8 years -- I do hit alt d first!! --
I don't actually consciously think about this anymore, and just ried what I
do!!!).
Also, if I am done in the code, then after I compile, I do a ctrl-f4 (close
the code), and do ctrl-s (if you compile, alt-f4 close, then save..the code
module window will not re-open for that module).
So, as a habit...I do (and have been) doing a debug-compile first....., then
ctrl-s.
I stand corrected on what I said..and even actually what I do...
--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada pl************* ****@msn.com
I keep a shortcut on my desktop for each version of Access that
doesn't specify the database. So, when I execute it, I'm prompted to
open a database, and it gets decompiled.
Where's the hassle in that?
Most people assume that you have to create a specify shortcut to the
particular mdb. (and, I am one of them!!).
In fact, I was not aware using a shortcut to ms-access.exe with the
/decompile, but NOT supplying a mdb file name would even work (I have not
seen this before!!).
Very neat-o. I was not aware this was possible!!!
On the other hand, I not needed nor used the shortcut idea, since I use the
use the registry entry that gives a context right click. That right click
also gives a compact option also (this allows me to simply right click on
the mdb, and de-compile -- I don't have to go back to the desktop to run a
shortcut, and *then* open a file. Further, I only run ONE version of
ms-access on my dev machine - other versions are installed to virtual pc
now.
so, while I prefer the right click idea....I was not aware you could use
/decompile without supplying the file name.
Your approach certainly makes building a shortcut a lot less of a hassle...
--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada pl************* ****@msn.com This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Eric Brunel |
last post by:
Hi all,
I was creating a Tkinter widget in the style of the reversed tabs below Excel
worksheets and I stepped in a serious problem: the code I made makes python
crash with a seg fault, bus error or X11 BadGC error on both Solaris (2.6 and
2.7) and Linux (Mandrake 8.0); it doesn't crash on Windows. I tried to simplify
the script, but I couldn't reproduce the crash with a simpler code. So the code
below is somewhat long; sorry for that.
...
|
by: Andrew Thompson |
last post by:
My brother was saying his friend running IE4
(apparently he's a stubborn techno-geek) has
'severe troubles' with the site I am designing
at http://www.lensescapes.com/
The site has been changed recently (a Java applet
that was causing a 'focus' problem was removed).
I was wonderring if there anybody out there with
access to IE4 could cast a quick browser over it
|
by: roni |
last post by:
hi.
i have application written in vb.net + managed c++ dll that call also to
unmanaged c++ function.
the application crash.
i open the dump file of the crash with WinDbg and that's is the call stack
(using the sos.dll) :
=====================================
|
by: greenflame |
last post by:
First of all I only have IE for testing.
Ok. I have a script that is supposed to show, not evaluate, the
indefinite integral of something. When I run the script it just craches
IE. I have tried to get all the obvious bugs out... Um... The script is
at: http://ali.freezope.org/idf test and what it is supposed to show is
at: http://ali.freezope.org/idf result
|
by: xixi |
last post by:
i have db2 udb v8.1 on windows 64 bit 2003 server, after db2 server
start , i found this in the db2diag.log, is this error?
2004-05-05-15.28.30.780000 Instance:DB2 Node:000
PID:1692(db2syscs.exe) TID:2860 Appid:AC10040A.GD5F.00FC56D8BEC5
base sys utilities sqledint Probe:30
Crash Recovery is needed.
2004-05-05-15.28.31.890000 Instance:DB2 Node:000
| |
by: Adam Louis |
last post by:
I would like help resolving this problem. I'm a novice who's been
hired to query a hospital database and extract useful information,
available to me only in a dynamically generated, downloadable .mdb.
The query below query runs correctly and without error, but any
attempt to save it causes Access to crash without a message, leaving
the .ldb file. Opening the DB reveals it saved a blank "query1".
I've upgraded to Jet SP 8, and I'm running...
|
by: shiry |
last post by:
Hi,
I need to do some important cleanup before my console application
exists. I used the console ctrl event. This is working well and it
fires for all cases, including the CTRL_CLOSE_EVENT (if I close the
application from the X botton). But on
the contrary to what the MSDN indicates
(ms-help://MS.VSCC.2003/MS.MSDNQTR.2003OCT.1033/dllproc/base/handlerroutine.htm),
ending my process from the task manager did not fire the
CTRL_CLOSE_EVENT....
|
by: junw2000 |
last post by:
Below is a simple code:
#include <iostream>
class base{
public:
base(): i(11){std::cout<<"base constructor"<<'\n';}
virtual void f() = 0;
virtual ~base(){ std::cout<<"base destructor"<<'\n';}
int i;
|
by: NewToCPP |
last post by:
Hi,
Why does a C/C++ programs crash?
When there is access to a null pointer or some thing like that programs
crash, but why do they crash?
Thanks.
|
by: benjamin.krulewitch |
last post by:
I'm debugging an issue with a C program that causes the computer to
crash, and I'm attempting to log information immediately before the
crash occurs. I us my BKprintLog function (see below) to write
information into a log file. The problem is, i'm not confident that
information i write to the log gets saved onto the hard drive before
the crash occurs.
My understanding of hard drives and OS are that because hard drives are
so slow,...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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...
|
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();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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
|
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...
| |