G
Guest
Hi,
I wanted to ask if anyone has experienced a program hang caused by selecting
a row in an Access database on a form and pushing the delete key?
There are many forms in this program and in a few areas I have written code
in form_delete to perform some other actions along with the deletion of that
record. There are places where this works fine but there is one place where
certain users are reporting that this causes the program to hang and they
only way they can get out of it is to use Task Manager and kill the program.
I cannot recreate this problem on my machine. The program has the code and
data tables separated. I have copied data tables to my machine and the
problem will not occur on my machine so I don't think this has to do with the
data.
One thing I am very curious about is whether this could have anything to do
with Access Runtime libraries. I distribute this program with runtime
libraries. Most users have Office (including Access) installed on their
machines but there are some that do not. I have noticed that some of the ones
that report this problem do not have Access installed on their machines. But
yet, the deleting will work under the same circumstances in other areas.
Example: I have two tables that contain medical information tblLog and
tblHealth. These tables are not related using referential integrity so when a
record is deleted from tblLog I find the record in tblHealth using a sql
statement and delete that record with a db.execute(sql) statement. This works
fine
But in financial records I have tblIncome and tblIncomeDetail that are
related with cascading deletes. I also have tblOtherIncome which is not
related using Access but has records that I need to delete based on the
tblIncome record being deleted. Most of the time this works fine but a few
users are experiencing a system hang as soon as they hit the delete key to
perform the deletion of any row.
Can anyone shed some light on this situation? Thanks!!!
I wanted to ask if anyone has experienced a program hang caused by selecting
a row in an Access database on a form and pushing the delete key?
There are many forms in this program and in a few areas I have written code
in form_delete to perform some other actions along with the deletion of that
record. There are places where this works fine but there is one place where
certain users are reporting that this causes the program to hang and they
only way they can get out of it is to use Task Manager and kill the program.
I cannot recreate this problem on my machine. The program has the code and
data tables separated. I have copied data tables to my machine and the
problem will not occur on my machine so I don't think this has to do with the
data.
One thing I am very curious about is whether this could have anything to do
with Access Runtime libraries. I distribute this program with runtime
libraries. Most users have Office (including Access) installed on their
machines but there are some that do not. I have noticed that some of the ones
that report this problem do not have Access installed on their machines. But
yet, the deleting will work under the same circumstances in other areas.
Example: I have two tables that contain medical information tblLog and
tblHealth. These tables are not related using referential integrity so when a
record is deleted from tblLog I find the record in tblHealth using a sql
statement and delete that record with a db.execute(sql) statement. This works
fine
But in financial records I have tblIncome and tblIncomeDetail that are
related with cascading deletes. I also have tblOtherIncome which is not
related using Access but has records that I need to delete based on the
tblIncome record being deleted. Most of the time this works fine but a few
users are experiencing a system hang as soon as they hit the delete key to
perform the deletion of any row.
Can anyone shed some light on this situation? Thanks!!!