Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recordset DTC SQL Statement

Status
Not open for further replies.

slink9

Programmer
Dec 11, 2000
19
US
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'
 
I don't use design time controls, but did you try to put a question mark in for the parameter ("...where order =?") and add the parameter to the parameters tab on the recordset DTC properties tab? There is a value field that you could enter request.form("orderID").
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top