Access will not allow new record in a subform 
Author Message
 Access will not allow new record in a subform

Table1: Members
MembersID (autonumber), Name, Adress, etc.

Table2: Parents
ParentID (autonumber), Name, Adress, etc.

Table3: Member_Parent
MembersID, ParentID

Table1 is the recordsource for the main form and table2 for the subform on a
tab'ed control of the main form. Table3 links 1 and 2 together.

When I try to enter a new member in the main form, this is okey, but when I
try to register this new members parents in the subform Access tell's me
"Field cannot be updated". The ParentID field gives me the next number and
the record is added in Table2. Is there a way I can automaticly add the new
record in table3 and avoid the error? Is the normalisation of my tables way
out, and if so, how should it be done?

Regards
Asbj?rn S?bye



Fri, 26 Nov 2004 23:52:54 GMT  
 Access will not allow new record in a subform


Quote:

> Table1 is the recordsource for the main form and table2 for the
> subform on a tab'ed control of the main form. Table3 links 1 and 2
> together.

> When I try to enter a new member in the main form, this is okey, but
> when I try to register this new members parents in the subform Access
> tell's me "Field cannot be updated". The ParentID field gives me the
> next number and the record is added in Table2. Is there a way I can
> automaticly add the new record in table3 and avoid the error? Is the
> normalisation of my tables way out, and if so, how should it be done?

Subforms do not lend themselves naturally to many-to-many relationships,
which is presumably what you have here. I assume that your structure allows
parents to have many members, and members to have more than one parent.

In essence, you'll need one form to maintain the parents table: add new,
delete and so on; and then use a subform on the members form to manage the
_relationship_: ie adding or removing parents from a particular member. You
can open the "Create a new parent record" form using a button on the member
form, which would be convenient for your users.

Hope that helps

Tim F



Sat, 27 Nov 2004 02:13:12 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Access will not allow new record in a subform

2. SUBFORM NOT ALLOWING NEW RECORDS

3. Subform not allowing new record entry

4. SubForm not allowing new records

5. subform not allowing new record

6. Query does not allow new records: OLEDB vs ODBC in Access 2K

7. OLEDB Access 2000 project view does not allows new records, whereas ODBC query does

8. Navigation Buttons - Not Allowing New Record Creation with Next Record

9. Is it possible to allow/not allow editing to certain fields in a subform

10. Subform Not allowing addition of record


 
Powered by phpBB® Forum Software © phpBB Group