How to apply or use ROUND and DateDiff formula in access

preview_player
Показать описание
Hello friends, This tutorial you can learn How to apply or use ROUND and DateDiff formula in access.
Round Function:
Ms access round function returns a number rounded to a specified number of decimal places. however ,
the ROUND function behaves a a little peculiar and uses something commonly referred to a as bankers rounding.
If the expression that you are rounding ends with a 5, the ROUND function will round the expression so that the last digit is an even number.
syntax: Round(expression, [decimal_places])

for example:
Round(13.55, 1)
Result: 13.6 (rounds up)

Round(12.75,1)
Result: 12.8 (rounds up)

DateDiff: DateDiff function returns the difference between two date values,
based on the interval(explanation) specified.The interval of time to use to calculate the difference between date1 and date2.
SYNTAX:
DateDiff ( interval, date1, date2, [firstDayofWeek], [fisrtDayofYear])
FORMULA 1
DateDiff("yyyy", #15/10/1999#, #22/11/2006#)
Result : 3
DateDiff("m", #15/10/1999#, #22/11/2006#)
Result: 1
DateDiff("d", #25/11/1999#, #05/11/1999#)
Result: 20

Рекомендации по теме
Комментарии
Автор

Dear Bro: Your sound / Voice quality of video getting Good Work

jamalshah
Автор

Sir, i watch your videos regularly, i have searched Ms.access two date range with third text box query i mean specific person data but never found, i think no one worked on this can you make a video on it?

UsmanGhani-demz
Автор

Hi sir, how to create crosstab query and apply to criteria

manjunath
Автор

help, in access 2007 error undefined function 'Round' in expression!

comprasrudely
Автор

Dear sir

Simple purchase sale stock
How to create quary stock details

shivannahr
Автор

Please help me for remove time form date and time value

harshadarawate
Автор

इस फॉर्म्युला से व्यक्ति का करेक्ट age in year, month, day नही आता. excel मे datedif से correct रिजल्ट मिलता है .

maheshdhaygude