Date Function in Access

dhen21dx

Board Regular
Joined
May 10, 2013
Messages
166
Hi Guys,

I need help on calculation of Time in Access. I have a Received Date and Closed Date, i do need to check if the time of Received date is =< 8:00 AM till 4:00 PM, if it is then i need to check if the time of Closing Date is at 5:00 PM (means same day closing) remarks will be Pass, Failed for those closing time 5:01 onwards. For the second validation, if received date time is 4:01 PM onwards, then 24 hours apply and remaks as Pass, if more than 24 hours mark as Failed.

Thanks
 
Perhaps a solution would be a lookup to get starting times/closing times using a country parameter. My code is based on using that information to test for whether or not the fix is on time based on calculating the time it is due. So just something like GetStartTime(TheCountry) and GetCloseTime(TheCountry) instead of the hardcoded values of 8 AM and 5 PM. You should be able to write that yourself.
 
Last edited:
Upvote 0

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Hi Xenou,

Thanks for helping, i am new on using ms access, will it cover the 4 rules using formula? or i need to have a vba code? how about in USA country where the start and end date is different?, the end date is on the next day 5AM. Hope you can give me idea.
 
Upvote 0
Hi Xenou,

Hope you can still help me, can Select Case also applicable for the selection of region.


Thanks
 
Upvote 0

Forum statistics

Threads
1,221,813
Messages
6,162,117
Members
451,743
Latest member
matt3388

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