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 did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

NumbersMax

Board Regular
Joined
Jun 19, 2007
Messages
200
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,190,774
Messages
5,982,842
Members
439,799
Latest member
matts12

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
Top