Skip to main content

Show Posts

This section allows you to view all Show Posts made by this member. Note that you can only see Show Posts made in areas you currently have access to.

Messages - Abes

1
Questions / Master - Child Relationship
Hi All - please help this newbie out with something that I suspect is easy but I just cant figure how to do it.

I have a master table and child as follows, both MySQL tables:

Master
comp_id - this is an autoincrement field, unique type index, integer
..........
.........
Child
id_comp - Primary index, integer
.........
.........

When I preview the master table (List), select a record and get the popover to Add a new record to the child table I need the child table field (id_comp) to automatically inherit the value of the autoincrement field (comp_id) from the master table.
How do I do this, please?