Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: Inserting into joined tables


Message #1 by "Victoria Weston" <vweston@m...> on Mon, 15 Apr 2002 15:33:54
I have 3 joined tables. The main one (User) contains the fields: user_id, 
fname, sname, dept_id, location_id, extension. The second one (Department) 
contains dept_id and department. The third (Location) contains location_id 
and area.
In order to add a new user to the User table, I have created a form that 
contains two dropdown lists that are populated by the departments and the 
areas from their respective tables, along with text boxes to input fname, 
sname and extension.
How do I write the statement to add the dept_id and location_id along with 
the other fields into the User table when the form is submitted?

  Return to Index