OrderBy Expression

D

DZ

I want to set the orderby property on load of a form to sort field ascending
except I want a particular word that start with < (Example <NONE>) to be at
the end of the sort.

Me.OrderBy = "Category, ??? "

Example

Category
 
K

Ken Snell \(MVP\)

SELECT Fieldname
FROM Tablename
ORDER BY IIf(Fieldname = "<NONE>", 1, 0), Fieldname;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top