
ok, so I am working with SQL 2005 and I am running queries against it just fine. the problem I am running into now is that I want to query the database based upon data in which I have in a text field.
in the below statement:
Code: Select all
put revDataFromQuery(comma,return, dbConnectionID, "select user_name, user_login, user_password, role_id from T_USERS where user_name =" & numToChar(39) & tUser & numToChar(39) & " and user_password = " & numToChar(39) & tPassword & numToChar(39)) into tData
I searched the dictionary and came across quote which gave the example of:
Code: Select all
put quote field 2 quote into responseToPost
Code: Select all
put quote, field 2, quote into responseToPost
anywho... best way to customize the where statement?