Date query

cornishteeth

Board Regular
Joined
Dec 6, 2002
Messages
117
I have dates in a table that correspond to instructors dates of transfer. I need to create a query that pulls up all instructors that are leaving with dates 30 days prior to the date in the field. For example if an instructor has a transfer date of June 18. I want the query to pull the instructor up on May 18. Hope this makes sense.

Thanks,
Frank
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Take a look at MSAccess Function called DateDiff(). It should fit the bill for your problem

HTH
Cal
 
Upvote 0
From what I understand and looking at the material, DateDiff takes the difference between two dates. I have one date. If the date is December 7th like today and an Instructor transfers on January 6th, I want his name to appear as a loss of an instructor utilizing a query.

Frank
 
Upvote 0
30DaysPrior: DateDiff("d",Date(),[InstructorXferDate]) and put <30 in the criteria. Thanks for the help.

Frank (y)
 
Upvote 0

Forum statistics

Threads
1,221,831
Messages
6,162,252
Members
451,757
Latest member
iours

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