Need help sorting a query

I

Iram

Hello,

I have a combobox that is called "Category". This combobox runs a query that
has two fields "Category" and "Team" from a table.

I need to sort the query by Team first then by Category.

The problem is when I sort the query like the below it doesn't sort
correctly because I need the combox to populate the field with the Category
selection....

Category Team
No Sorting Ascending

When I run the query described above it sorts the Team fine however the
Category sorts all messed up.

Can you help with this problem and tell me how to correctly do this?



Thanks.
Iram/mcp
 
K

KARL DEWEY

This combobox runs a query that has two fields "Category" and "Team" from a
table.
Post the query SQL by open in design view, click on VIEW - SQL View,
highlight all, copy, and paste in a post.
 
I

Iram

Here you go....

SELECT tbl_Category.Category, tbl_Category.Classification,
tbl_Category.CountWhatCountsStat
FROM tbl_Category
ORDER BY tbl_Category.Classification, tbl_Category.CountWhatCountsStat;
 
P

PieterLinden via AccessMonster.com

Iram said:
Here you go....

SELECT tbl_Category.Category, tbl_Category.Classification,
tbl_Category.CountWhatCountsStat
FROM tbl_Category
ORDER BY tbl_Category.Classification, tbl_Category.CountWhatCountsStat;
I need to sort the query by Team first then by Category.

Then why not
ORDER BY tbl_category.Team, tbl_Category.Category
 

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