Query problems

cornishteeth

Board Regular
Joined
Dec 6, 2002
Messages
117
Can't seem to figure out this. I am trying to query Instructors that transfer in the next 30 days. I created the following:

30DaysPrior: DateAdd("d",-30,[InstructorXferDate])

Perhaps there is an easier way to do this.

Thanks,

Frank
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Frank

What is the actual problem?

Shouldn't it actually be

30DaysPrior: DateAdd("d",-30, Date)

You're formula would return dates 30 days before InstructorXFerDate.
 
Upvote 0
OK. I actually didn't put the problem in there. DateAdd function returns the Instructor Xfer date minus thirty days. This works. The problem is how do I take that date and utilizing a report display the individuals who fall in that category i.e. Instructors leaving in 30 days as of the day when I asked for the report. I hope this makes sense.

Frank
 
Upvote 0
Hi, is the date-30 calculated in a query or on the report?
Andrew.
 
Upvote 0

Forum statistics

Threads
1,221,827
Messages
6,162,202
Members
451,752
Latest member
freddocp

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