The following SQL statement keeps generating the syntax error below:
Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'tblOrderDetails where tblProductType.ProductTypeID=tblProducts.ProductTypeID and tblProducts.PriceID=tblPricing.PriceID and tblOrder.CustomerID=tblCustomer.CustomerID and tblOrder.OrderID=tblOrderDetails.OrderID and tblOrderDetails.UPC=tblProducts.UPC'.
I have been stuck on this one for a while and cannot recognise the error,
Can someone help please..
All I'm tryng to do is a dynamic retreive of records into i single table..
The DB consists of 10 tables
the data retreive can allow further data manipu;lation
I cannot for the life of me figure out what operator is missing
Thanks
Code:
<%SQL= " select tblProducts, tblCustomer, tblProductType, tblPricing, tblOrder, tblOrderDetails where tblProductType.ProductTypeID=tblProducts.ProductTypeID and tblProducts.PriceID=tblPricing.PriceID and tblOrder.CustomerID=tblCustomer.CustomerID and tblOrder.OrderID=tblOrderDetails.OrderID and tblOrderDetails.UPC=tblProducts.UPC"
Set rsOrders = Server.CreateObject("ADODB.Recordset")
rsOrders.Open SQL, objConn, adOpenDynamic, adLockOptimistic, Cmdtext
I have been stuck on this one for a while and cannot recognise the error,
Can someone help please..
All I'm tryng to do is a dynamic retreive of records into i single table..
The DB consists of 10 tables
the data retreive can allow further data manipu;lation
I cannot for the life of me figure out what operator is missing
Thanks