![]() |
Sergey Kornilov admin 2/1/2007 |
Your code looks good. You just need to print values you retrieved from the master table. Sub EditOnLoad(where) Session("termino_entry") = "" Session("domain") = "" str = "select [termino_entry], [domain] from [1_parents] where [ID]='" & Session(strTableName & "_masterkey1") &"'" Set rsTemp = server.CreateObject("ADODB.Recordset") rsTemp.open str, dbConnection Session("termino_entry") = rsTemp("termino_entry") Session("domain") = rsTemp("domain") rsTemp.close : set rsTemp = nothing Response.write Session("termino_entry") & " " & Session("domain") End Sub |
B
|
bluecells author 2/1/2007 |
It looks good to me too <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=15128&image=1&table=forumreplies' class='bbc_emoticon' alt=':rolleyes:' /> |
![]() |
Sergey Kornilov admin 2/1/2007 |
That's why posting error message is important - you can get your answer much faster. |
B
|
bluecells author 2/2/2007 |
Thanks. |
![]() |
Sergey Kornilov admin 2/2/2007 |
Jerome, |
C
|
clig 2/2/2007 |
It looks good to me too <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=15163&image=1&table=forumreplies' class='bbc_emoticon' alt=':rolleyes:' /> But: Error number -2147217913 Error description [Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression. URL /2_children_edit.asp SQL query select [N°], [language], [entry], [entry_date], [comment], [validation_date_customer], [validation_date_agency], [0K_import], [OK_customer], [comment_import], [link], [Last_change] From [2_children] where ([2_children].[N°]=1) Additional info Event: Call EditOnLoad(sWhere)
|
B
|
bluecells author 2/2/2007 |
Thanks for this input but I don't understand it. |
![]() |
Sergey Kornilov admin 2/2/2007 |
Things looks better now. |
B
|
bluecells author 2/8/2007 |
Thank you for the tip.
|
![]() |
Sergey Kornilov admin 2/9/2007 |
If you proceed to detail table directly run a SQL query that retrieves master key value from the detail record. |