Posted 16 September 2017, 7:55 am EST
This is code from the page that is working. As you can see there is not a field called subReport_Customer_Contact
strSQL = "SELECT distinct im_cntct_tbl.im_cntct_name, im_cntct_tbl.im_cntct_title, en_cust_tbl.en_cust_key, en_cust_tbl.en_cust_name, im_cntct_tbl.im_cntct_phone, " strSQL = strSQL & "im_cntct_tbl.im_cntct_fax, im_cntct_tbl.im_cntct_moble, im_cntct_tbl.im_cntct_telex, im_cntct_tbl.im_cntct_itnet, im_cntct_nofax, im_cntct_no_email " strSQL = strSQL & "FROM im_cntct_tbl INNER JOIN (en_cstcn_tbl INNER JOIN en_cust_tbl ON en_cstcn_tbl.en_cust_key = en_cust_tbl.en_cust_key) ON im_cntct_tbl.im_cntct_key = en_cstcn_tbl.im_cntct_key " strSQL = strSQL & "INNER JOIN im_cntct_ext ON im_cntct_tbl.im_cntct_key = im_cntct_ext.im_cntct_key " strSQL = strSQL & "WHERE en_cust_tbl.en_cust_key = " & strCustomer strSQL = strSQL & " ORDER BY im_cntct_tbl.im_cntct_name" rsContact.Open strSQL, cnMain strSQLContact = strSQL end if
if Request.Form("viewreport")="View Report" then
set vsr = server.CreateObject("VSReport8.VSReport")
set vsrSub = server.CreateObject("VSReport8.VSReport")
vsrSub.Load "c:testwebwebSolutionsreportsCustomer_Info.xml", "subReport_Customer_Contact"
vsrSub.DataSource.ConnectionString=Session("connectionstring") & ";uid=sa;pwd=essay" vsrSub.DataSource.RecordSource = strSQLContact
vsr.Load "c:testwebwebsolutionsreportsCustomer_Info.xml", "rpt_Customer_Record" vsr.DataSource.ConnectionString=Session("connectionstring") & ";uid=sa;pwd=essay"
vsr.Fields("subReport_Customer_Contact").Subreport=vsrSub vsr.DataSource.RecordSource = strSQLCust vsr.
DoEvents=false
So what does that have to do with it if this code works?