sistemalan
11-26-2009, 03:07 AM
Hi and thanks in advance for any advice,
I use a database to look after the children's charity for whom I work. We have regular trips and I normally create a new table for each event to keep track of who is signed up. So I have two tables - one called Children, with the structure:
ChildID (Primary Key, Autonumber)
First Name
Surname
etc...
and an events table, for instance Xmas Concert with the structure
ChildID (Primary Key, Number)
SignedUpForEvent (yes/no)
NumberofTickets
etc
When I create a relationship between these tables, what I hope for is that I can run a query which will list every child and quickly tick whether or not they are signed up. This seems to work sometimes, but other times, setting it up in what I believe to be the same way I get the message "You cannot add or change a record because a related record is required in table 'Children'." whenever I try to update a record.
The process I have used to create the relationship is as follows:
1 - Go to Relationships Window
2 - Show both tables
3 - Click and drag ChildID in Children table and drag to ChildID in Xmas_Concert table.
4 - Tick Enforce Referential Integrity and Cascade Update Related Fields
5 - Choose Join Type number 2
I am really frustrated. Can someone please spell out the process I need to follow to get this to work consistently. I am using access 2003.
Cheers,
Alan
I use a database to look after the children's charity for whom I work. We have regular trips and I normally create a new table for each event to keep track of who is signed up. So I have two tables - one called Children, with the structure:
ChildID (Primary Key, Autonumber)
First Name
Surname
etc...
and an events table, for instance Xmas Concert with the structure
ChildID (Primary Key, Number)
SignedUpForEvent (yes/no)
NumberofTickets
etc
When I create a relationship between these tables, what I hope for is that I can run a query which will list every child and quickly tick whether or not they are signed up. This seems to work sometimes, but other times, setting it up in what I believe to be the same way I get the message "You cannot add or change a record because a related record is required in table 'Children'." whenever I try to update a record.
The process I have used to create the relationship is as follows:
1 - Go to Relationships Window
2 - Show both tables
3 - Click and drag ChildID in Children table and drag to ChildID in Xmas_Concert table.
4 - Tick Enforce Referential Integrity and Cascade Update Related Fields
5 - Choose Join Type number 2
I am really frustrated. Can someone please spell out the process I need to follow to get this to work consistently. I am using access 2003.
Cheers,
Alan