Don't forget to encode the string correctly, or the query is open for SQL inections: "SELECT Word,Category,Number,Gender,Person,Degree,ObjectType,Tense,Aspect,Mood,Comp1,Comp2,Comp3,Theta1,Theta2,Theta3 FROM HindiLex,Attributes,SubCategoryFrames,ThematicFrames where HindiLex.Word = '" + word.Replace("'","''") + "' and HindiLex.AttrNo = Attributes.AttrNo "+ "And HindiLex.LexSCFNo = SubCategoryFrames.LexSCFNo "+ "and HindiLex.ThemSCFNo = ThematicFrames.ThemSCFNo" --- b { font-weight: normal; }