I have an asp form that will insert form values into two tables. In the db this is a master/detail relationship(meetings - > meeting_details) and I am going to build the form in asp the same way.
--
--
meetings(master table)-> meeting_id, meeting_date, quorum, visitors, notes
meeting_details(detail table) -> meeting_details_id, meeting_id, topic_catagory_id, topic_id
join is on meeting_id
--
--
Would I have to use two insert statements to insert the form values into meetings AND meeting details? In other words would I insert first into meetings, then into meeting_details? If so, since in meetings meeting_id is an autonum field, would I after the first insert statement grab that meeting_id to use in the second insert statement?
Thanks in advance.
Pam Polk
--
--
meetings(master table)-> meeting_id, meeting_date, quorum, visitors, notes
meeting_details(detail table) -> meeting_details_id, meeting_id, topic_catagory_id, topic_id
join is on meeting_id
--
--
Would I have to use two insert statements to insert the form values into meetings AND meeting details? In other words would I insert first into meetings, then into meeting_details? If so, since in meetings meeting_id is an autonum field, would I after the first insert statement grab that meeting_id to use in the second insert statement?
Thanks in advance.
Pam Polk