Child Table Autofill from Master |
6/9/2007 12:51:56 AM |
ASPRunnerPro General questions | |
I know this has been asked a million times but I canot seem to get it to work. |
|
F
|
funklet 6/10/2007 |
If I have read this correctly then I assume you would like a field from another (master) table to show. |
![]() |
Sergey Kornilov admin 6/10/2007 |
Lowkeck, |
|
Lowkeck authorDevClub member 6/11/2007 |
Thanks Guys. If I was to do it this way, will it store the "compname" value from the master table in the actual child table? Or will it simply display the "compname" value in the application? |
![]() |
Sergey Kornilov admin 6/11/2007 |
It stores compname in the child table. That's how tables are linked. |
|
Lowkeck authorDevClub member 6/11/2007 |
Sorry, I missed what you were saying in the other message. My tables are linked by a different field called "custno" (numeric field), that is the field I would use to make the innerjoin. In this scenario would the "compname" value still get written to the child table? |
J
|
Jane 6/13/2007 |
Hi, str = "select compname from MasterTable where custno=" & Session(strTableName & "_masterkey1") Set rsTemp = server.CreateObject("ADODB.Recordset") rsTemp.open str, dbConnection Session("compname") = rsTemp("compname") rsTemp.Close : set rsTemp = Nothing
|