If statements in OrderBy

  • Thread starter Thread starter Bruce
  • Start date Start date
B

Bruce

Is it possible to sort by two separate criteria within the one OrderBy
statement depending on certain criteria?

To clarify:

My database holds job numbers of both Promotional Jobs and
Commissioned Jobs. I want to be able to print a report and display a
datasheet form that displays all of these numbers together, but
separated into their own groups and sorted within their groups.

I was thinking that maybe there was a way to sort: IF Promotional
THEN....ELSE...

Does anyone know if this is possible, and if not, any other way to
accomplish this?

Cheers,
Bruce Walker
 
Bruce

From your description, it sounds like you could use a "Totals" query, using
GroupBy for each of the two characteristics.
 

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

Back
Top