Premature Shut-down of a Database

A

Arturo

I have a team that each is using a stand-alone version of Access 2003. They
can suspend a session and return to continue the session, or if finished with
the session, they can log off the program. A session must be completed within
the same day. If a session is suspended and the user does not return until
the next day, the program will alert them to this and automatically finish
the session and start a new one for that day.

This activity is tracked within by using certain words and phrases that I
will call “keys.â€

Example 1: Key = “LO†starts a new session.
Example 2: Key = “SUS†suspends the session
Example 3: Key = “IS†means that they are currently in a session.

When the database is opened, the key that it identifies determines where to
take the user. This all works well until someone turns off the computer
without closing the program or uses Ctrl Alt Delete to close the program.

If the program is shut down prematurely and the key is “IS†at the time,
when it is reopened, it will give an error message. Is there a function or a
procedure other than “On Close†that will allow me to reset that key when
this happens?

Thank you.
 
T

Tom van Stiphout

On Fri, 29 Aug 2008 05:17:00 -0700, Arturo

It appears you are currently saving the Key value when the application
closes normally. How about saving it as soon as it is changed? Then
you can crash all you want.

-Tom.
Microsoft Access MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top