R
Randall Arnold
I have an Access 2003 database designed for a plumbing operation. There is
nothing 2003-specific involved in my question so hopefully someone can
answer this.
The main table (Jobs) uses an autonumber field [Job ID] to keep track of
jobs. Each job can have any or all of 4 types of tasks, two unique
(one-to-one) and two recurring (one-to-many). The task queries link the
values of several tables together on key fields; [Job ID] is the central key
to everything.
Everything works as it should so far except one function: if I delete tasks
from any table that has a one-to-one relationship with the Jobs table, the
Job is also deleted. This is NOT desireable. Note that deleting tasks from
tables with a one-to-many relationship does NOT result in deleting the
associated Job, even if I delete every associated task. This has me
stumped! Is it the one-to-one relationship that's to blame? If so, why and
what's the solution?
Except for that nature of the relationships, the queries are constructed the
same. I disabled "enforce referential integrity" on the one-to-one
relationships hoping that would solve the problem-- there was no noticeable
effect.
This is a real problem for my client. I am determined to solve this by
week's end... can anyone point out the source of my stupidity on this one?
I'm sure it's something simple I'm overlooking...
Thanks all,
Randall Arnold
nothing 2003-specific involved in my question so hopefully someone can
answer this.
The main table (Jobs) uses an autonumber field [Job ID] to keep track of
jobs. Each job can have any or all of 4 types of tasks, two unique
(one-to-one) and two recurring (one-to-many). The task queries link the
values of several tables together on key fields; [Job ID] is the central key
to everything.
Everything works as it should so far except one function: if I delete tasks
from any table that has a one-to-one relationship with the Jobs table, the
Job is also deleted. This is NOT desireable. Note that deleting tasks from
tables with a one-to-many relationship does NOT result in deleting the
associated Job, even if I delete every associated task. This has me
stumped! Is it the one-to-one relationship that's to blame? If so, why and
what's the solution?
Except for that nature of the relationships, the queries are constructed the
same. I disabled "enforce referential integrity" on the one-to-one
relationships hoping that would solve the problem-- there was no noticeable
effect.
This is a real problem for my client. I am determined to solve this by
week's end... can anyone point out the source of my stupidity on this one?
I'm sure it's something simple I'm overlooking...
Thanks all,
Randall Arnold