472,958 Members | 1,800 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,958 software developers and data experts.

Referential Integrity that isn't

I seem to have gotten myself into a bit of a pickle. I am trying to
delete a record from a table attached to a form, and it complains
about not being able to delete a record in a table because "the record
cannot be deleted because table sales includes related records"
Cascade deletes and referential integrity right?

Well no. The table I am deleting out of has NO referential integrity
with ANY other table. I tried renaming and deleting the table and all
to no avail.

Here is my situation

Table1 is Sales and it has a company ID in it
Table2 is Company Table with company ID
Table3 is kind of a join with branches and headquarters of Companies.
It has ONLY the company ID of the headquarter and that of the branch

Table1 IS related to Table2 with RI (no cascade updates or deletes...)

The form for maintaining Table3 is a join on Company twice for the
purpose of displaying the names of the branch and headquarter company
for the user

Table2 Table3 Table2_1
ID-----------ID
Name SubID----------ID
Name
Then we display Table3.ID, Table2.Name, Table3.SubID, Table2_1.name as
subname

When I try to delete any record I get the can't delete record. If I
don't create the record source with the wierd 3 table join, it deletes
fine.

Ideas?

Thanks in Advance
Bob Rogers
Nov 12 '05 #1
2 1506
I have seen this before. Try compacting the database then try deleting
table.

--
Dean Covey
www.coveyaccounting.com

MS-Office Certified:
http://www.microsoft.com/learning/mc...st/default.asp

"Bob Rogers" <mi******@hevanet.com> wrote in message
news:91**************************@posting.google.c om...
I seem to have gotten myself into a bit of a pickle. I am trying to
delete a record from a table attached to a form, and it complains
about not being able to delete a record in a table because "the record
cannot be deleted because table sales includes related records"
Cascade deletes and referential integrity right?

Well no. The table I am deleting out of has NO referential integrity
with ANY other table. I tried renaming and deleting the table and all
to no avail.

Here is my situation

Table1 is Sales and it has a company ID in it
Table2 is Company Table with company ID
Table3 is kind of a join with branches and headquarters of Companies.
It has ONLY the company ID of the headquarter and that of the branch

Table1 IS related to Table2 with RI (no cascade updates or deletes...)

The form for maintaining Table3 is a join on Company twice for the
purpose of displaying the names of the branch and headquarter company
for the user

Table2 Table3 Table2_1
ID-----------ID
Name SubID----------ID
Name
Then we display Table3.ID, Table2.Name, Table3.SubID, Table2_1.name as
subname

When I try to delete any record I get the can't delete record. If I
don't create the record source with the wierd 3 table join, it deletes
fine.

Ideas?

Thanks in Advance
Bob Rogers

Nov 12 '05 #2
Well, I'll be hornswaggled!!! thank you Dean. That does in fact seem
to do it. Yet another case of Access remembering too many things for
it's own good.
I have seen this before. Try compacting the database then try deleting
table.

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Bob Rogers | last post by:
I seem to have gotten myself into a bit of a pickle. I am trying to delete a record from a table attached to a form, and it complains about not being able to delete a record in a table because...
1
by: Grant McLean | last post by:
Hi First a simple question ... I have a table "access_log" that has foreign keys "app_id" and "app_user_id" that reference the "application_type" and "app_user" tables. When I insert into...
6
by: Greg Stark | last post by:
There's another poster complaining about referential integrity checks causing deadlocks. Unfortunately I've deleted the message so this response (and the archives aren't responding) isn't going to...
7
by: Jimmie H. Apsey | last post by:
Referential Integrity on one of our production tables seems to have been lost. I am running Postgres 7.1.3 embedded within Red Hat kernel-2.4.9-e.49. Within that I have a table with referential...
5
by: Geisler, Jim | last post by:
So, as far as I know, PostgreSQL does not have any way of verifying the loss of referential integrity. Are there any recommended methods or utilities for checking referential integrity in a...
6
by: heyvinay | last post by:
I have transaction table where the rows entered into the transaction can come a result of changes that take place if four different tables. So the situation is as follows: Transaction Table...
80
by: Andrew R | last post by:
Hi I'm creating a series of forms, each with with around 15-20 text boxes. The text boxes will show data from tables, but are unbound to make them more flexible. I want the form to be used...
3
by: moskie | last post by:
Is there a way to run an alter table statement that adds a constraint for a foreign key, but does *not* check the existing data for refrential integrity? I'm essentially looking for the equivalent...
6
by: CPAccess | last post by:
How do I maintain referential integrity between a main form and a subform, each based upon different (but joined with integrity enforced) table? Here's the situation: I have two tables:...
2
by: ApexData | last post by:
Access2000, using a continuous form. I’m getting a message that say “you cannot add or change a record because a related record is required in table Employee”. This occurs in all my combobox...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.