10-05-2005 11:29 AM
10-05-2005 01:18 PM - edited 10-05-2005 01:18 PM
Message Edited by Mert A. on 10-05-2005 01:23 PM
10-05-2005 02:09 PM
Hi Mert,
Thank you for your reply! I plugged in your code example and still get the same error of "Too few parameters. Expected 1." when it gets to the
hstmt = DBActivateSQL (hdbc, "SELECT * FROM RESULTS39 WHERE TEST_ID = TestId"); line of the code.
You are correct that I do want to do essentially want a "SELECT * FROM RESULTS39 WHERE TEST_ID = '1234'", with a variable. Th code does work when using a string but I just cannot get the syntax correct with my variable?
Thanks for your help
Mike
10-05-2005 04:30 PM
10-05-2005 04:34 PM
Mert,
I figured it out...needed the single qoute around the string identifier '%s', then the hstmt = DBActivateSQL (hdbc, sqlStatement); worked!
Thank you for your help!!!