I have set up a Recordset DTC in VI6. I have passed a variable from one web page to this one and would like to use that variable in the SQL statement. I can not figure out how to tell it to see the variable within the SQL editor window. I have defined another variable and converted it to the CINT of the first and that is not helpful. Below see the code that I put into the SQL Statement window.
select Orders.OrderID, Customers.CompanyName, Orders.ShippedDate from Orders, Customers where Orders.CustomerID = Customers.CustomerID and Orders.OrderID = 'OID2'
select Orders.OrderID, Customers.CompanyName, Orders.ShippedDate from Orders, Customers where Orders.CustomerID = Customers.CustomerID and Orders.OrderID = 'OID2'