Print Page | Close Window

BeginDateEndDateQuery.mdb

Printed From: Roger's Access Library
Category: Roger's Access Library
Forum Name: Roger's Download Samples
Forum Description: A compendium of Microsoft Access 97 and 2000+ routines, each separated into its own sample database.
URL: www.rogersaccesslibrary.com/forum/forum_posts.asp?TID=555
Printed Date: 23 Oct 2017 at 10:05pm


Topic: BeginDateEndDateQuery.mdb
Posted By: Roger Carlson
Subject: BeginDateEndDateQuery.mdb
Date Posted: 20 Jan 2011 at 2:26pm
Please consider donating $1 per sample downloaded, http://www.rogersaccesslibrary.com/whydonations.htm - find out why here .
 
BeginDateEndDateQuery.mdb
 
This sample illustrates how to create a  query which displays the BeginDate and EndDate of a range based on a single EffectiveDate stored in the table. 

It is assumed that the Effective Date range of a record spans the time from the Effective date of the current record and the Effective Date of the NEXT record (minus 1).

There are three methods shown here: Using a 1) correlated subquery, 2) DMax domain aggregate function, and 3) LEFT OUTER JOIN. 

Access 2000+ Download: http://www.rogersaccesslibrary.com/forum/uploads/5/BeginDateEndDateQuery.zip - BeginDateEndDateQuery.zip

-------------
Consider donating $1 per sample downloaded, http://www.rogersaccesslibrary.com/whydonations.htm" rel="nofollow - find out why here .<



Print Page | Close Window