access adding value from different table to one

lokeshsu

Board Regular
Joined
Mar 11, 2010
Messages
178
Hi i have around 10 table and i have start time and end time i need a query in access where it should take difference of start time and end time and sum up to a single number

for example
table 1 end time-start time = a
table 2 end time-start time =b
table 3 end time-start time =c
table 4 end time-start time =d
table 5 end time-start time =e

so i need the sum ( a+b+c+d+e )
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Take a look at this and see if it helps: Adjust the format to the Sum to Hours and Minutes.

Excel Workbook
FGHIJ
1Start TimeEnd TimeTotal
208:3016:4208:12
309:1213:1204:00
408:3117:0308:32
509:0016:1207:12
6
7
8
9Total Time27:56
Sheet1
 
Upvote 0
Create a query where you are using start time and end time then save the query then you can add an expression which is the same as Excel except you are using field names.

Use DateDiff something like this, you can look up DateDiff for the different ways to dispaly your answer

Expr4: DateDiff("n",[starttime],[endtime])
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,850
Members
452,948
Latest member
UsmanAli786

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top