bugl
bugl
HomeLearnPatternsPathsSearch
HomeLearnPatternsPathsSearch

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

MS Access Functions

Flash cards

Review the key moves

1/3
Core idea

What is the main idea behind MS Access Functions?

Lesson checks

Practice each idea before moving on

Short Mimo-style checks built from this lesson's code, terms, and sequence.

1Quick choice

Which statement best captures the main point of this lesson?

2Order

Put the learning moves in the order that makes the concept easiest to apply.

MS Access Numeric Functions
MS Access String Functions
MS Access Functions

MS Access has many built-in functions.

This reference contains the string, numeric, and date functions in MS Access.

MS Access String Functions

FunctionDescription
AscReturns the ASCII value for the specific character
ChrReturns the character for the specified ASCII number code
Concat with &Adds two or more strings together
CurDirReturns the full path for a specified drive
FormatFormats a value with the specified format
InStrGets the position of the first occurrence of a string in another
InstrRevGets the position of the first occurrence of a string in another, from the end of string
LCaseConverts a string to lower-case
LeftExtracts a number of characters from a string (starting from left)
LenReturns the length of a string
LTrimRemoves leading spaces from a string
MidExtracts some characters from a string (starting at any position)
ReplaceReplaces a substring within a string, with another substring, a specified number of times
RightExtracts a number of characters from a string (starting from right)
RTrimRemoves trailing spaces from a string
SpaceReturns a string of the specified number of space characters
SplitSplits a string into an array of substrings
StrReturns a number as string
StrCompCompares two strings
StrConvReturns a converted string
StrReverseReverses a string and returns the result
TrimRemoves both leading and trailing spaces from a string
UCaseConverts a string to upper-case

MS Access Numeric Functions

FunctionDescription
AbsReturns the absolute value of a number
AtnReturns the arc tangent of a number
AvgReturns the average value of an expression
CosReturns the cosine of an angle
CountReturns the number of records returned by a select query
ExpReturns e raised to the power of a specified number
FixReturns the integer part of a number
FormatFormats a numeric value with the specified format
IntReturns the integer part of a number
MaxReturns the maximum value in a set of values
MinReturns the minimum value in a set of values
RandomizeInitializes the random number generator (used by Rnd()) with a seed
RndReturns a random number
RoundRounds a number to a specified number of decimal places
SgnReturns the sign of a number
SqrReturns the square root of a number
SumCalculates the sum of a set of values
ValReads a string and returns the numbers found in the string

MS Access Date Functions

FunctionDescription
DateReturns the current system date
DateAddAdds a time/date interval to a date and then returns the date
DateDiffReturns the difference between two dates
DatePartReturns a specified part of a date (as an integer)
DateSerialReturns a date from the specified parts (year, month, and day values)
DateValueReturns a date based on a string
DayReturns the day of the month for a given date
FormatFormats a date value with the specified format
HourReturns the hour part of a time/datetime
MinuteReturns the minute part of a time/datetime
MonthReturns the month part of a given date
MonthNameReturns the name of the month based on a number
NowReturns the current date and time based on the computer's system date and time
SecondReturns the seconds part of a time/datetime
TimeReturns the current system time
TimeSerialReturns a time from the specified parts (hour, minute, and second value)
TimeValueReturns a time based on a string
WeekdayReturns the weekday number for a given date
WeekdayNameReturns the weekday name based on a number
YearReturns the year part of a given date

MS Access Some Other Functions

FunctionDescription
CurrentUserReturns the name of the current database user
EnvironReturns a string that contains the value of an operating system environment variable
IsDateChecks whether an expression can be converted to a date
IsNullChecks whether an expression contains Null (no data)
IsNumericChecks whether an expression is a valid number

Previous

SQL Server USER_NAME() Function

Next

MS Access Asc() Function