Hi, Randy.
Thanks for the clarification. Corruption is a possibility, but what's more
likely is that improper error handling is being used in the code behind the
form. If the system warnings are turned off prior to an operation that
fails, the system warnings need to be turned back on in the error handler
before the user will see the appropriate message. Without an error handler
in this case, the application crashes and the fatal error silently closes
Access while the user just sits there wondering what happened.
You, or somebody knowledgeable in VBA, needs to step through the VBA code in
the VB Editor's Debugger to see what is causing Access to choke. It could
be a corrupted record, a record not found, a renamed (or missing) table,
query, field, form -- and any of these errors handled improperly -- or a
host of other things.
Look for code such as the following:
DoCmd.SetWarnings False
.... where the corresponding code:
DoCmd.SetWarnings True
.... isn't executed as intended, due to an error occurring and code execution
jumping to either to the error handler or the previous calling procedures
and their error handlers. Either adding appropriate error handling or not
turning these system warnings off prior to a failure will allow the
appropriate error message to be displayed to the user, if this is in fact
what is occuring with your database application.
When stepping through the VBA code, start with the OnClick( ) event of the
button labeled "Data Input" on the menu form.
Once you've ruled out the probability that the application itself is
misbehaving due to unhandled/mishandled errors, then you can look at
corruption as the suspect. Corruption will get worse as time goes on or it
can be quite abrupt, by preventing the database from even opening. Look for
other bizarre behavior in the database application while you troubleshoot
this problem, which would be a strong indicator that corruption is to blame,
not the database developer.
HTH.
Gunny
See
http://www.QBuilt.com for all your database needs.
See
http://www.Access.QBuilt.com for Microsoft Access tips.
(Please remove ZERO_SPAM from my reply E-mail address, so that a message
will be forwarded to me.)