I'm running Access 2003 on WinXP
Here is my problem:
I'm trying to lookup a date in a table from a query data. The query
include the following: Query = Qry_Invoice and Table = Tbl_Friday
Qry_Invoice contains invoice data like: supplier name, invoice date,
payment date, purchase order.
Tbl_Friday contains all the fridays from 2003 to 2007.
Since friday is the chosen date for the weekly accounting check run, my
issue is I'm trying to lookup the nearest friday to the payment date.
Once I get my result, I will be able to sort and run the weekly print
check reports automatically.
For example: I have an invoice form a supplier XYZ Inc. which is dated
2005-9-15 (Invoice_Date), the supplier has 45 days terms so the
Payment_date is 2005-10-30. This date appear between two fridays
2005-10-28 & 2005-11-04. I either get the first date of the table or
the last. How can I run a function to get my result?
I've tried the expressions DMax, DMin and DLookup with no success by
grouping the database. This seemed to be the most logical way until
now...
Thanks