krappleby025
Programmer
i have an sql query
set rs=conn.execute("SELECT * FROM products where class LIKE '" & maingroup & "' ORDER BY autonumber"
and i need to pull any records that contain the maingroup variable, ie if maingroup = test
then i want to pull all with the word test in them
ie
metest
me test
test me
testme
test
complete test phase
etc... how do i do it, i know it has something to do with the * but cant work out where to put it
thanks
set rs=conn.execute("SELECT * FROM products where class LIKE '" & maingroup & "' ORDER BY autonumber"
and i need to pull any records that contain the maingroup variable, ie if maingroup = test
then i want to pull all with the word test in them
ie
metest
me test
test me
testme
test
complete test phase
etc... how do i do it, i know it has something to do with the * but cant work out where to put it
thanks