I have an asp page with the following embedded sql statement which parses fine in access but generates an ODBC connection failed error (and when i query a simpler table in the asp page there are no errors and the results are displayed just fine) is this query too complex for asp as it has aliases to other queries NOT tables?:
strSql="SELECT DISTINCT report_inv.RETAILER_NO, report_inv.CountOf_STATUS_CD AS bal, rep_report_ship.CountOf_STATUS_CD AS ship, rep_report_at_x1.CountOf_STATUS_CD AS x1, rep_report_at_x2.CountOf_STATUS_CD AS x2, rep_report_misc.CountOfMDU_STATUS_CD AS misc FROM (MAIN_STATUS LEFT JOIN (rep_report_inv LEFT JOIN ((rep_report_ship LEFT JOIN rep_report_at_x2 ON rep_report_ship.RETAILER_NO = rep_report_at_x2.RETAILER_NO) LEFT JOIN rep_report_at_x1 ON rep_report_at_x2.RETAILER_NO = rep_report_at_x1.RETAILER_NO) ON rep_report_inv.RETAILER_NO = rep_report_ship.RETAILER_NO) ON MAIN_STATUS.RETAILER_NO = rep_report_inv.RETAILER_NO) LEFT JOIN rep_report_misc ON rep_report_at_x1.RETAILER_NO = rep_report_misc.RETAILER_NO ORDER BY rep_report_inv.RETAILER_NO"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.