
Originally Posted by
Access_Blaster
How about a simple parameter query with this in the criteria under the amount field:
Code:
BETWEEN [Enter value more then 6,999] AND [Enter value less then 10,001]
then in your transactions field sort in decending order. Or set the query for the top 5 values. Not very elegant but it might be a starting point?
I began with something like this - the issue is - I have approx. 40,000 records that I need without knowing the how many meet this critiria...
This is the code I have
Code:
SELECT [Wires_I-incoming_O-outgoing].[OrderParty Name], [Wires_I-incoming_O-outgoing].[Transaction Amount]
FROM [Wires_I-incoming_O-outgoing]
WHERE [Wires_I-incoming_O-outgoing].[Transaction Amount]>=forms!structured!min1 And [Wires_I-incoming_O-outgoing].[Transaction Amount]<=forms!structured!max1
GROUP BY [Wires_I-incoming_O-outgoing].[OrderParty Name], [Wires_I-incoming_O-outgoing].[Transaction Amount]
HAVING (((Count(*))>=1))
ORDER BY Count(*) DESC;
I thought I could get away with the HAVING COUNT line - but that will only bring up duplicates if I increase that number... I just have to find out how to add in this code - the ability to look at these results and find records that contain 3 more from the same company name...
thank you again