Update Date from Table1 to Table2

Waqas ali

Board Regular
Joined
Nov 6, 2010
Messages
163
My dear friends,

i have two tables in one table i have startshift ,endshift and shiftdate in table1

StartShiftEndShift
ShiftDate

<tbody>
</tbody>
01/08/2015 6:00:00

<tbody>
</tbody>
02/08/2015 6:00:00

<tbody>
</tbody>
01-Aug-15

<tbody>
</tbody>

<tbody>
</tbody>







in table two i have timings i want to update tbale1 shift date in table2 where table2 timings exist in between table1 start and end shift timings.

StartTime

<tbody>
</tbody>
EndTime

<tbody>
</tbody>
SixToSixShift

<tbody>
</tbody>
01/08/2015 07:55:06
01/08/2015 07:56:01

<tbody>
</tbody>
01/08/2015 07:49:00
01/08/2015 07:50:11

<tbody>
</tbody>
01/08/2015 07:53:38

<tbody>
</tbody>
01/08/2015 07:54:29

<tbody>
</tbody>

<tbody>
</tbody>








how i have to write update query in access.:confused:
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
why do you have a [shift date] field in table1, when the date is already in [StartShift]?
 
Upvote 0
Dear ranman256,

i have to update table1 shift in table2. in tbale2 i have start time and end time with date but i don't have shift date this data i am getting from an other application. now i have to update shift date which is cover 24 hours. like from today 0700 to next day 0700 i have to update one date. one shift date is covering 24 hours if i take from table2 by putting format function then date will change after 00:00 but my shift date will not change till next day 0700. so i have to update shiftdate in table 2 against those fields in table2 which are laying in between table1 startshift and endshift date. for example 01-08-15 07:00:00 to 02-08-15 07:00:00 = 01-08-15

thanks
 
Upvote 0
My dear friends,

i have two tables in one table i have startshift ,endshift and shiftdate in table1

StartShiftEndShift
ShiftDate

<tbody>
</tbody>

01/08/2015 6:00:00

<tbody>
</tbody>

02/08/2015 6:00:00

<tbody>
</tbody>

01-Aug-15

<tbody>
</tbody>


<tbody>
</tbody>








in table two i have timings i want to update tbale1 shift date in table2 where table2 timings exist in between table1 start and end shift timings.

StartTime

<tbody>
</tbody>

EndTime

<tbody>
</tbody>

SixToSixShift

<tbody>
</tbody>

01/08/2015 07:55:06
01/08/2015 07:56:01

<tbody>
</tbody>

01/08/2015 07:49:00
01/08/2015 07:50:11

<tbody>
</tbody>

01/08/2015 07:53:38

<tbody>
</tbody>

01/08/2015 07:54:29

<tbody>
</tbody>


<tbody>
</tbody>









how i have to write update query in access.:confused:




 
Upvote 0

Forum statistics

Threads
1,221,845
Messages
6,162,350
Members
451,760
Latest member
samue Thon Ajaladin

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