Microsoft Access 2007 tutorial: Build-in Functions

Build-in Functions



IX. Build-in Functions

IX.1. Numeric Manipulation Functions

They are functions that use with numeric data. Those functions include SQTR(), COS(), SIN(), TAN(), TI(), EXP().

IX.2. Text Manipulation Functions

Text 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)

Microsoft Access 2007 Build-in functions

- 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 functions

The 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:
Interval Description
yyyy Year Interval
q Quarter Interval
m Month Interval
d Day Interval
ww Week Interval
w Weekday Interval
h Hour Interval
n Minute Interval
s Second Interval




Comments

Name:
Comment:
Enter the text:
CAPTCHA image

.........................................................................................................................Home | Forum | About | Contact
This website intents to provide free and high quality tutorials, examples, exercises and solutions, questions and answers of programming and scripting languages:
C, C++, C#, Java, VB.NET, Python, VBA,PHP & Mysql, SQL, JSP, ASP.NET,HTML, CSS, JQuery, JavaScript and other applications such as MS Excel, MS Access, and MS Word.
However, we don't guarantee all things of the web are accurate. If you find any error, please report it then we will take actions to correct it as soon as possible.
Copyright @ 2011-2013 worldbestlearningcenter. All Rights Reserved.
Home Programming Web DB & App Questions Exercises Tips Programs FAQs Download About
Computer-Wbest
Popular Pages
You might like