Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Order By.....

Status
Not open for further replies.

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 ?
 
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
 
Thanks...:)
PS how can I get this to work ? :
Set RS = CNN.Execute("SELECT """DESC""" , FROM items ")
 
???

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
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 ")
 
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
 
Yes....does not work...still getting keyword error
 
comma......there should not be a comma after DESC !!!!!!!

Set RS = CNN.Execute("SELECT DESC FROM items ")
 
YOu should absolutely consider trying to get this field name changed. It really should never have been named DESC.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top