hi guys, i have the code below in asp and it's having some error that says: invalid column name 'text here is the content of a field'. the column for 'Country' is in varchar and i don't know if it has something to do with it. fruitid is in int data type. i read somewhere that it has to do with the ". that it needs to be ' on the sql statement, ive tried it but it's just commenting out the whole sql statement. do you have other ideas?
'
set myRS = Server.CreateObject("ADODB.Recordset")
myRS.ActiveConnection = MM_myTestConn_STRING
myRS.Source = "SELECT fruitID,Country FROM fruitCountryTable where Country=" & Request("countryCode") & " and fruitID=" & myarray(i)
myRS.CursorType = 0
myRS.CursorLocation = 2
myRS.LockType = 3
myRS.Open()
'
'
set myRS = Server.CreateObject("ADODB.Recordset")
myRS.ActiveConnection = MM_myTestConn_STRING
myRS.Source = "SELECT fruitID,Country FROM fruitCountryTable where Country=" & Request("countryCode") & " and fruitID=" & myarray(i)
myRS.CursorType = 0
myRS.CursorLocation = 2
myRS.LockType = 3
myRS.Open()
'