473,396 Members | 1,933 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Referential Integrity problem. Related record is required in tableEmployee?

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 fields that have referential integrity
linked to another table. I do not have the field in the table set as
required, and I do not want to require the entry. If the record is
filled out completely and added to the table, you can go back to the
same record and eliminate the data in the fields that have referential
integrity and it saves without complaint.

My problem is that when a New Record is created and I fail to enter
data in the fields that have referential integrity set, I get the
error message. Why?

I simply want to create a NewRecord and not require data to be entered
in the fields that have referential integrity.
Jul 6 '08 #1
2 3894
On Sun, 6 Jul 2008 15:49:08 -0700 (PDT), "Ap******@gmail.com"
<Ap******@gmail.comwrote:

Perhaps you set a default value in the field's table design? Sometimes
Access sets a default value of 0 for an ID field and the related table
may not have such an entry. Take out those defaults.

-Tom.

>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 fields that have referential integrity
linked to another table. I do not have the field in the table set as
required, and I do not want to require the entry. If the record is
filled out completely and added to the table, you can go back to the
same record and eliminate the data in the fields that have referential
integrity and it saves without complaint.

My problem is that when a New Record is created and I fail to enter
data in the fields that have referential integrity set, I get the
error message. Why?

I simply want to create a NewRecord and not require data to be entered
in the fields that have referential integrity.
Jul 7 '08 #2
Thanks Tom

That was the problem.
I would have gone nuts wasting time on that one.


On Jul 6, 8:51*pm, Tom van Stiphout <no.spam.tom7...@cox.netwrote:
On Sun, 6 Jul 2008 15:49:08 -0700 (PDT), "ApexD...@gmail.com"

<ApexD...@gmail.comwrote:

Perhaps you set a default value in the field's table design? Sometimes
Access sets a default value of 0 for an ID field and the related table
may not have such an entry. Take out those defaults.

-Tom.
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 fields that have referential integrity
linked to another table. *I do not have the field in the table set as

required, and I do not want to require the entry. *If the record is
filled out completely and added to the table, you can go back to the
same record and eliminate the data in the fields that have referential
integrity and it saves without complaint.
My problem is that when a New Record is created and I fail to enter
data in the fields that have referential integrity set, I get the
error message. *Why?
I simply want to create a NewRecord and not require data to be entered
in the fields that have referential integrity.- Hide quoted text -

- Show quoted text -
Jul 7 '08 #3

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

Similar topics

0
by: Steve | last post by:
In AccessXP in Access2000 mode --- TblCustomer: CustomerID, CustomerName TblOrder: OrderID, CustomerID, OrderDate TblOrderDetail: OrderDetailID, OrderID, Detail Appropriate...
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...
4
by: Mike Dole | last post by:
I might have taken a wrong turn trying to do an update on a database the way I did but maybe somebody can help me out cause I'm stuck.. I have to update 12 tables in a database in a client...
3
by: Dave | last post by:
I have always taken it for granted that once RI is in place, no orphan records can be created, and that RI can't be put in place while orphans exist, but today I came across a situation where that...
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...
14
by: manning_news | last post by:
Using 2003. I've got a simple 1:M relationship for employees and classifications. A classification can be assigned to many employees/an employee can only have one classification. I created a...
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...
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:...
3
by: Wayne | last post by:
I've inadvertently placed this post in another similar newgroup, and I apologise if you get it twice. I'm building a database that consists of frontend and backend. Some of the lookup tables...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.