Senin, 02 Juli 2018

Re: [MS_AccessPros] Query: Make EndDateTime of a record the StartDateTime of next record

 

Duane,


Here is a simplified version to make it easier to see.

Tables are linked by column product.   Minutes are calculated by multiplying Product Table minutes of product times order qty. 

Date format I use is mm/dd/yyyy if that makes a difference.  

Current Output
Product Description Order Qty ProductionDate Minutes StartDateTime EndDateTime
P01 Photo Album 1 5 7/3/2018 120  7/3/2018 6:00 7/3/18 8:00
P01 Photo Album 2 15 7/3/2018 145  7/3/2018 6:00 7/3/18 8:25
P01 Photo Album 3 10 7/3/2018 36  7/3/2018 6:00 7/3/18 6:36
Desired Output
Product Description Order Qty ProductionDate Minutes StartDateTime EndDateTime
P01 Photo Album 1 5 7/3/2018 120  7/3/2018 6:00 7/3/18 8:00
P01 Photo Album 2 15 7/3/2018 360  7/3/2018 8:00 7/3/18 14:00
P01 Photo Album 3 10 7/3/2018 240  7/3/2018 14:00 7/3/18 18:00
Table Products
Product Description Minutes
P01 Photo Album 24
     
Table Orders
Product Description Order Qty ProductionDate
P01 Photo Album 1 5 7/3/2018
P01 Photo Album 2 15 7/3/2018
P01 Photo Album 3 10 7/3/2018

__._,_.___

Posted by: lrheimpel@gmail.com
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (3)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.


SPONSORED LINKS
.

__,_._,___

Tidak ada komentar:

Posting Komentar