![]() |
Sergey Kornilov admin 3/25/2008 |
Each form allows you to enter data into a single table which means you need two forms to enter the main record and spare parts. I recommend you to use AfterAdd event to redirect user to spare parts add page. |
M
|
matt.cohen author 3/26/2008 |
Each form allows you to enter data into a single table which means you need two forms to enter the main record and spare parts. I recommend you to use AfterAdd event to redirect user to spare parts add page. I recommend you to watch "How to setup master-details relationships" tutorial at http://xlinesoft.com/asprunnerpro/tutorial.htm.
|
J
|
Jane 3/26/2008 |
Hi, |
M
|
matt.cohen author 3/27/2008 |
Hi, you can do it using ViewOnLoad event on the Events tab. Actual event code is dependent on your tables structure.
|
J
|
Jane 3/27/2008 |
Matt, if Request("editid1") then str = "select * from AnotherTable where RecordID=" & Request("editid1") Set rsTemp = server.CreateObject("ADODB.Recordset") rsTemp.open str, dbConnection while not rsTemp.eof Response.write "FieldName : " & rsTemp("FieldName") & " | " Response.write "FieldName2 : " & rsTemp("FieldName2") & " | " Response.write "FieldName3 : " & rsTemp("FieldName3") & " | " Response.write " " rsTemp.MoveNext wend rsTemp.Close : set rsTemp = Nothing end if |
M
|
matt.cohen author 3/27/2008 |
Matt, here is a sample code:
|