Quantcast
Channel: Microsoft Community - Super Fresh
Viewing all articles
Browse latest Browse all 1237235

determine if date in one table is between two dates in another ms access table

$
0
0

I have 2 Access tables - an address table and an event table.

The address table has a client id, address effective date, zip code and county.

The event table has the client id and an event date.

Both tables can have multiple entries for each client id.

I need to create a report that shows what zip code/county was associated with a client ID at the time an event occurred.

So I need to determine if an event date occurred between 2 consecutive address effective dates and then return the zip code and county for the earlier address effective date for each client id.

But I also need to determine if an event date occurred after the latest address effective date and return the zip code and county for that latest address effective date.

The data would look something like this:

address table event table
cidaddr_eff_dtezipcountycidevent_dte
123451/1/199511111abc 1234510/5/1992
123456/6/200422222def 123459/4/2007
123454/16/200933333ghi 1234511/20/2016
123455/10/201544444jkl  

I have no idea where to start or if this is even possible within Access.   Any help offered would be much appreciated. 


Viewing all articles
Browse latest Browse all 1237235

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>