![]() |
Sergey Kornilov admin 10/23/2006 |
In version 4.1 you need to use the following: Sub AddOnLoad() ' ' put your custom code here '(the data is collected from a msSql server) str = "select * from [hcdfuser].[Eleves] where AutoID=" & prepare_for_db("AutoID",SESSION(strTableName & "_masterkey1"),"","") Set rsTemp = server.CreateObject("ADODB.Recordset") rsTemp.open str, dbConnection Session("EcoleID") = rsTemp("EcoleID") Session("ParentID") = rsTemp("ParentID") Session("EleveID") = rsTemp("EleveID") Session("Palmares")= rsTemp("Palmares") End Sub |
J
|
jlemecthomas author 10/25/2006 |
I am using these modified codes for passing parameters from a master to a detail table in Version 4.1: |
J
|
jlemecthomas author 10/25/2006 |
Ok... I found the solution... the Masterkey being passed is of type String and I needed to add quotation marks before and after. The following change worked fine: |