"Find Highest and Lowest" Query

J

Jason W.

I am trying to run a query that will find both the
highest and lowest priced items in a table.

I just can't seem to make it work.

Any ideas?

Thanks.
 
F

fredg

I am trying to run a query that will find both the
highest and lowest priced items in a table.

I just can't seem to make it work.

Any ideas?

Thanks.

As criteria for the query...
WHERE YourTable.PriceField=DMax("[PriceField]","YourTable") OR
YourTable.PriceField=DMin("[PriceField]","YourTable")
 
G

Guest

Fred,

Just wanted to say Thanks. It worked!!!

Jason
-----Original Message-----


As criteria for the query...
WHERE YourTable.PriceField=DMax
("[PriceField]","YourTable") OR
YourTable.PriceField=DMin("[PriceField]","YourTable")

--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
.
 

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