S
shawnews
Ok...I was persented this problem and i have it almost worked out (I think).
A customer of mine has asked for a database to store information based on a
written form he used in the past. The nature of the form is such that there
are several areas of info but the tables would NOT form any kind of
one-to-many relationship. I know it is rare, but I believe this to be a
one-to-one relationship?
So, based on the fact the (written) form has several areas of info, I made
several tables - one for each area. I made a primary key, called it cardID
and have allowed no duplicates. This key I created in one table. In the
corresponding tables I made a field also called cardID, but did NOT set it
as a primary key, but rather, a number field. (these fields are indexed but
set to not allow duplicates). I then created a one-to-one
relationship...each table connecting to the first table (with the primary
key). I left the joins as "only including rows where the joined fields
from, both tables are equal".
I then created a query based on all the tables, omitting the "cardID" field
and from this query created a form to enter data.
All works well. I can enter data, go to another record and enter new
data..I can even create new queries filtering out what I want and I can
generate reports from these queries.
BUT...here is the problem. Lets say I have a record..let's say record 2. I
am in the fifth record and realize I missed something in record 2. I can
return to this record in my form, but when I try to enter new data and then
re-save the record, I get this error:
"The changes you requested to the table were not successful because they
would create duplicate values in the index, primary key or relationship.
Change the data in the field or fields that contain dupicate data, remove
the index or redefine the index to permit duplicate entries and try again."
Please...any suggestions would be most welcome. Thanks in advance to any
and all who respond
A customer of mine has asked for a database to store information based on a
written form he used in the past. The nature of the form is such that there
are several areas of info but the tables would NOT form any kind of
one-to-many relationship. I know it is rare, but I believe this to be a
one-to-one relationship?
So, based on the fact the (written) form has several areas of info, I made
several tables - one for each area. I made a primary key, called it cardID
and have allowed no duplicates. This key I created in one table. In the
corresponding tables I made a field also called cardID, but did NOT set it
as a primary key, but rather, a number field. (these fields are indexed but
set to not allow duplicates). I then created a one-to-one
relationship...each table connecting to the first table (with the primary
key). I left the joins as "only including rows where the joined fields
from, both tables are equal".
I then created a query based on all the tables, omitting the "cardID" field
and from this query created a form to enter data.
All works well. I can enter data, go to another record and enter new
data..I can even create new queries filtering out what I want and I can
generate reports from these queries.
BUT...here is the problem. Lets say I have a record..let's say record 2. I
am in the fifth record and realize I missed something in record 2. I can
return to this record in my form, but when I try to enter new data and then
re-save the record, I get this error:
"The changes you requested to the table were not successful because they
would create duplicate values in the index, primary key or relationship.
Change the data in the field or fields that contain dupicate data, remove
the index or redefine the index to permit duplicate entries and try again."
Please...any suggestions would be most welcome. Thanks in advance to any
and all who respond