Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Find closest date

Find closest date

Find closest date


My 1st post on here, so please be kind!

I am trying to find a way of pulling in data based on matching the closest lower date.

I have 2 tables:

Employee_Bookings that holds all the Time & Attendance of our employees and includes the following columns:

Effective_Rate that includes the employee rates of pay and when that became effective and includes the follwoing columns:

What I am trying to do is get the employees rate of pay at Employee_Bookings.Date by finding the closest lower Effective_Rate.Eff_Date

I hope that makes sense and someone will be able to point me in the correct direction

RE: Find closest date

You could use a >= join FROM the Employee Bookings table TO the Effective Rate table on Date to Eff_Date, with an equal join on the Emp_no field. This will return potentially multiple eff_dates per employee. Insert a group on {Employee Bookings.Emp_No}.

Then go to report->selection formula->Group and enter:


This will return only the row containing the most recent rate.


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close