Access Query where Count is = to N, Please Help!!!

hip2b2

Board Regular
Joined
May 5, 2003
Messages
135
Office Version
  1. 2019
Platform
  1. Windows
I have a single table with Stock Ticker Symbol, Numeric Value, Date. I need to build a query that will output ONLY the tickers that are represented in each month of the data sample, i.e., where date is = 29 (months).

Easy to do in Excel, but database is 150,000 records and so I'm committed to Access.


Thanks in advance.

:oops: :pray:
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
You can filter on date as your criteria to get records from a range. in the criteria of your date field >#01/01/2002# And <#01/01/2003# would give you a years data.
If this is not what you are after please post back with more details.

Peter
 
Upvote 0
Will this provide me with all records that ALL the dates between the range?

Thanks

hip :pray:
 
Upvote 0
What seems to be happening is that any record between the date range is returned. I am looking for a statement that will only return the records where ALL the date conditions are satisfied.

Thanks again

hip
 
Upvote 0
Just to clarify...
If you have stock ABC, you ONLY want to see it if, in a range of 30 months, its ticker appears 30 times? Any less, forget it?

Denis
 
Upvote 0
Exactically, ONLY those cases that are represented every month of the date range.

Thanks

hip
 
Upvote 0

Forum statistics

Threads
1,221,566
Messages
6,160,525
Members
451,655
Latest member
rugubara

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top