Query to show accounts which appear everyday for 14 days.

fastpants

New Member
Joined
Jun 22, 2007
Messages
33
Hello

I have a series of information showing the results of our in house dialler and an access database. I need to run a query to see which accounts have shown up everyday in the last 14 days. I am just using Access as there are over 4 million records and i dont want to over complicate things.

Imagine the database has 3 fields, 'date', 'account number' and 'result of dial'.

I have got the date bit which i have put in a as a prompt which is
>=[enter start date]

Thats no problem, but how do i get it to pull up accounts which have only appeard on each day? i.e all account which we have dialled on for 2 weeks without a succesful result.

I'm sorry if i am waffling a bit i want to ensure all the info is here.

Thanks
FP
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Conceptually, you could Count the number of times the account appears and compare that to a DateDiff() function where you get the difference between the start date and today.

Have the Count of the account number = the Datediff (days between start date and today) in the criteria

This could be a little tricky on a query grid trying to get it just right in the criteria, but maybe the VBA gurus can offer up a more elegant solution.

Max
 
Upvote 0

Forum statistics

Threads
1,224,803
Messages
6,181,055
Members
453,014
Latest member
Chris258

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