A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

"Effective Date" Criteria for Rates



 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old October 7th, 2005, 02:24 PM
Jason V
external usenet poster
 
Posts: n/a
Default "Effective Date" Criteria for Rates

I have been stuck on this for some time now. I will try to make it as clear
as I can.

I need to create a Report of “transactions” (days worked of various
employees) that have been assigned a specific invoice number. These reports
need to include calculated “amounts” (hours worked x rate).

Different employees have different rates and the rates will change over
time, the rates are always assigned an “effective date”. The rate that is
used to calculate the “amount” must use the rate that was effective on the
date that the transaction occurred.

I query all transactions (from the transaction table) to find those with the
specified Invoice Number(the transaction table includes date, employee, hours
worked, etc.). Now I need to assign a rate (from the rate table) to each
transaction based on the date the transaction occurred. Access must look at
the employee, then choose the largest “effective date” which is less than the
transaction date. Lastly, I need to perform the “amount” calc.

Can I set up a single query to do all of this? I know I can do it if each
employee only has a single rate (in the rate table). I just don’t know how
to include the criteria to choose the correct effective date.

Let me know if more information is needed……thanks in advance.


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Date Range and Average F/X Rate David General Discussion 0 June 23rd, 2005 02:26 PM
Greater than date to multiple criteria Bill Malmgren New Users 1 September 10th, 2004 12:23 AM
QDE (Quick Date Entry) Norman Harker Worksheet Functions 37 September 5th, 2004 01:24 AM
Aggregating Date Data into Weeks and Quarters Roger Running & Setting Up Queries 3 July 11th, 2004 05:56 PM
Date reference as criteria in query Tim Brown Running & Setting Up Queries 1 June 21st, 2004 01:01 AM


All times are GMT +1. The time now is 07:05 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright 2004-2024 OfficeFrustration.
The comments are property of their posters.