Jan 27, 2005 #1 Johnny42 Technical User Jul 13, 2004 127 CA SELECT DESC,ITEMNO ,COMMENT3 FROM items where (isnumeric(ITEMNO)) and DESC like ('%" & TextBox1.Value & "%') " I would like to sort this by DESC ...can this be done with the order by ?
SELECT DESC,ITEMNO ,COMMENT3 FROM items where (isnumeric(ITEMNO)) and DESC like ('%" & TextBox1.Value & "%') " I would like to sort this by DESC ...can this be done with the order by ?
Jan 27, 2005 #2 PHV MIS Nov 8, 2002 53,708 FR ORDER BY 1 Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244 Upvote 0 Downvote
ORDER BY 1 Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
Jan 27, 2005 Thread starter #3 Johnny42 Technical User Jul 13, 2004 127 CA Thanks... PS how can I get this to work ? : Set RS = CNN.Execute("SELECT """DESC""" , FROM items ") Upvote 0 Downvote
Jan 27, 2005 #4 PHV MIS Nov 8, 2002 53,708 FR ??? Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244 Upvote 0 Downvote
??? Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
Jan 27, 2005 Thread starter #5 Johnny42 Technical User Jul 13, 2004 127 CA one of my field names is DESC (description) When I use this in a VBA module I get a reserved word error...however in access the query works... Set RS = CNN.Execute("SELECT DESC , FROM items ") Upvote 0 Downvote
one of my field names is DESC (description) When I use this in a VBA module I get a reserved word error...however in access the query works... Set RS = CNN.Execute("SELECT DESC , FROM items ")
Jan 27, 2005 #6 PHV MIS Nov 8, 2002 53,708 FR Have you tried SELECT [DESC],... Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244 Upvote 0 Downvote
Have you tried SELECT [DESC],... Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
Jan 27, 2005 Thread starter #7 Johnny42 Technical User Jul 13, 2004 127 CA Yes....does not work...still getting keyword error Upvote 0 Downvote
Jan 27, 2005 Thread starter #8 Johnny42 Technical User Jul 13, 2004 127 CA comma......there should not be a comma after DESC !!!!!!! Set RS = CNN.Execute("SELECT DESC FROM items ") Upvote 0 Downvote
comma......there should not be a comma after DESC !!!!!!! Set RS = CNN.Execute("SELECT DESC FROM items ")
Jan 27, 2005 #9 swampBoogie Programmer Jan 6, 2003 1,660 SE Code: Set RS = CNN.Execute("SELECT ""DESC"" FROM items") Upvote 0 Downvote
Jan 31, 2005 #11 pelajhia Programmer May 19, 1999 592 US YOu should absolutely consider trying to get this field name changed. It really should never have been named DESC. Upvote 0 Downvote
YOu should absolutely consider trying to get this field name changed. It really should never have been named DESC.