I have a new database that has a main table (Contacts) with Contact ID as the
primary key/autonumber.
I also have another table (Resource) and have it linked to the main in a one-
to-many relationship, it also has a Contact ID as an autonumber, but it isn't
set as a primary key.
I have put (Resource) as a sub-form in my main table form, where the wizard
asks which fields are linked, and I put in the contact ID for each table.
What I am doing is, in the main table capturing contact information from
suppliers, and in the Resource table I capture information each time there is
an update with that contact. So I need to add many resource records to one
record in Contacts.
The problem is when I add a record to the main form, I can add a resource to
the sub form, but it will only let me add one record, as soon as I try and
add another it comes up with an error saying there needs to be a matching
record in the main form.
I have also noticed that the autonumber in the sub form does not match the
auto number in the main form. I have deleted all the records and compiled
database to start again, but it still has the same problem.
I have two other databases with this kind of set up and dont have any
problems at all, so I am not sure what I am doing wrong, have spent all
morning looking through to compare each database to see what differences I
can see and they all look the same.
Can any help please, I'm sure its something really simple
Thanks
Tracy
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200707/1