Hi Penny,
I attempted to upload a sample file to our group site Files->1_Samples but it appears the file didn't appear. The sample file has a function and query that shows how to use it to get he date difference between the next and last dates.
Give me a shout if you want the file.
Regards,
Duane
Sent: Wednesday, February 7, 2018 9:28 AM
To: MS_Access_Professionals@yahoogroups.com
Subject: Re: [MS_AccessPros]
Penny,
I think it's time to learn VBA or at least implement someone else's code. A non-code solution might consist of:
- Creating a normalizing union query of your primary key field and a date which could result in 1 to 7 rows being created for each current record
- Placing these normalized records in order
- Create a ranking query that numbers the dates in order for each of the primary key values
- Create a crosstab query of the ranked results with the dates in appropriate order
- Pulling the date diffs from the appropriate columns
Or someone could write a fairly simple function which you could implement.
Regards,
Duane Hookom
Sent: Wednesday, February 7, 2018 8:01 AM
To: MS_Access_Professionals@yahoogroups.com
Subject: [MS_AccessPros]
Posted by: Duane Hookom <duanehookom@hotmail.com>
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (3) |
Tidak ada komentar:
Posting Komentar