Microsoft Access 2007 tutorial: Build-in Functions |
||||||||||||||||||||||
Build-in FunctionsIX. Build-in FunctionsIX.1. Numeric Manipulation FunctionsThey are functions that use with numeric data. Those functions include SQTR(), COS(), SIN(), TAN(), TI(), EXP().IX.2. Text Manipulation FunctionsText manipulation functions work with text data type. Those functions are:- Left(String, Length): The function is used to take out a substring from the String argument. The length of substring is specified by the Length argument that you defined. Ex: You want to cut out three letters from Employee Name from left to right. To do so, you have to write the following function: FirstName: Left(EmpName,3) ![]() - Right(String, Length): The function is used to cut out a substring from the String argument. The length of substring is specified by the Length argument you defined. Ex: You want to take out two letter from Employee Name from right to left. To do so you have to write the function below: LastName:Right(EmpName,2) - LCASE(String): The function is used to convert a string to small letters. - UCASE(String): The function is used to convert a string to capital letter. - Trim(String) : The function is used to cut out space from both sides of a string. - LTrim(String): The function is used to take out space from left side of a string. - RTrim(String): The function is used to take space away from right side of a string. IX.3. Date/Time manipulation functionsThe function is used to get year, month, day etc. These function include:DatePart('Interval', DateArgument): The function is used to get Date/Time data base on Interval. - DateArgument: Field name that has a data type as Date/Time. - Interval: The form of data you have to define as Date/Time. The interval form are described in the table below:
|
||||||||||||||||||||||
|
||||||||||||||||||||||