Min/Max as query criteria

LB79

Registered User.
Local time
Today, 11:57
Joined
Oct 26, 2007
Messages
505
Hi all,

Is there a way to used Min or Max in the query criteria?

Thanks
 
I don't understand your table.
 
Sorry - It all changed during submission - Ill repost in a moment.
 
You shouldn't need to delete your post. It will make my reply meaningless.
 
I was actually in the process of deleting it to repost it before you replied but obviously you were too quick for me.
Not quite sure how to post the table. If I paste it in the text box the format is fine but then goes screwy after I submit. I tried to add it as a picture but it seems that I need to upload it to the net first and link it.
Ill repost once I figure out how.
 
You can attach a spreadhsheet with the BEFORE and AFTER set of records.
 
Thanks - Just realised I can upload that picture afterall.
In thie table I have 4 records that have some data in common. In my query I want to restrict the data so only the record with the lowest VALUE3 shows. Ive tried using the Min in Total but it still brings up all the data. Where am I going wrong with this?

Thanks
 

Attachments

  • untitled.JPG
    untitled.JPG
    16.9 KB · Views: 612
Yes with different One/Two combinations. Actually each of those in that picture is a seperate record.
 
You can use a subquery or you can do this:

1. Create a new query based on your current query.

2. Put in a new column -->
Code:
3Min: DMin("MinOfValue3", "QueryName", "One = '" & One & "' AND Two = '" & Two & "'")

3. Then in the criteria row of MinOfValue3 put:
Code:
[3Min]
 

Users who are viewing this thread

Back
Top Bottom