G
|
gdmacdo 7/1/2013 |
I assume you have joined the tables on the "Table" page of the project and used CNIC as the connector field.The CNIC key should be a field available to select on the emp_leave "Fields" tab of the project. If you only want to display some master/ information on the detail/child, you could create an ASP snippet on the child record: |
A
|
adnankmk author 7/2/2013 |
I assume you have joined the tables on the "Table" page of the project and used CNIC as the connector field.The CNIC key should be a field available to select on the emp_leave "Fields" tab of the project. If you only want to display some master/ information on the detail/child, you could create an ASP snippet on the child record: [font=Calibri]if Session(strTableName & "_masterkey1")<>"" then [font=Calibri] Session(strTableName & "_masterkey1"),"") [font=Calibri] Response.Write "CNIC Number: " & rstmp("CNIC") & " "[size=2] [/size] [font=Calibri] rstmp.close [font=Calibri]end if
|
G
|
gdmacdo 7/2/2013 |
You would you use this in an ASP Snippet someplace in your Add/Edit form. In my case, I have a master form where the StudentID is the Primary Key field. I use this code to display the StudentLastName and StudentFirstName on the detail/child form. Since I do not need to store the [size="2"]StudentLastName and StudentFirstName data on the child record, I just want the information displayed so the end user knows the student name they are working with instead of just a number.[/size] Thanks for replying. I am not understanding where I should write this code. In which event I should use this code. |
A
|
adnankmk author 7/3/2013 |
You would you use this in an ASP Snippet someplace in your Add/Edit form. In my case, I have a master form where the StudentID is the Primary Key field. I use this code to display the StudentLastName and StudentFirstName on the detail/child form. Since I do not need to store the [size="2"]StudentLastName and StudentFirstName data on the child record, I just want the information displayed so the end user knows the student name they are working with instead of just a number.[/size] [size="2"]On your Add/Edit page in Visual Editor, you will see an icon in the ribbon (looks like a piece of paper with a pencil) for insert code that has the "Insert ASP Code Snippet" in the dropdown. [/size]
|
G
|
gdmacdo 7/3/2013 |
Try the code below without the spaces between lines. Also, are these your exact table names and field names? When I run this code it gives VB Script Error Code on this line set rstmp = dal.Table("EmpInfo").Query("CNIC=" & |