FNS Flashcards
Asc Function
The Microsoft Access Asc function returns the NUMBER code that represents the specific character.
Asc ( string )
Asc (“W”)
Result: 87
Chr Function
The Microsoft Access Chr function returns the character based on the NUMBER code.
Chr ( number_code )
Chr (87)
Result: “W”
How to concatenate
you can concatenate multiple strings together into a single string with the & operator.
string_1 & string_2 & string_n
Format Function (with Strings)
The Microsoft Access Format function takes a string expression and returns it as a formatted string.
Format (“210.6”, “#,##0.00”)
Result: ‘210.60’
Format (“210.6”, “Standard”)
Result: ‘210.60’
Format (“0.981”, “Percent”)
Result: ‘98.10%’
Format (“1267.5”, “Currency”)
Result: ‘$1,267.50’
Format (“Sep 3, 2003”, “Short Date”)
Result: ‘9/3/2003’
InStr Function
The Microsoft Access InStr function returns the position of the first occurrence of a string in another string.
InStr ( [start], string_being_searched, string2, [compare] )
InStr(“Tech on the Net”, “T”)
Result: 1 ‘Shows how start is defaulted to 1 if omitted
InStr(1, “Tech on the Net”, “T”)
Result: 1
InStr(1, “Tech on the Net”, “t”)
Result: 1 ‘Shows that search is not case-sensitive
InstrRev function
The Microsoft Access InstrRev function returns the position of the first occurrence of a string in another string, starting from the end of the string.
InstrRev ( string_being_searched, string2 [, start [ , compare] ] )
InstrRev (“alphabet”, “a”)
Result: 5
LCase function
LCase function converts a string to lower-case
LCase ( text )
Left function
The Microsoft Access Left function extracts a substring from a string, starting from the left-most character.
Left ( text, number_of_characters )
Left (“Tech on the Net”, 4)
Result: “Tech”
Len function
The Microsoft Access Len function returns the length of the specified string.
Len ( text )
LTrim function
The Microsoft Access LTrim function removes leading spaces from a string.
LTrim ( text )
Mid function
he Microsoft Access Mid function extracts a substring from a string (starting at any position).
Mid ( text, start_position, [number_of_characters] )
Replace function
The Microsoft Access Replace function replaces a sequence of characters in a string with another set of characters (a number of times)
Replace ( string1, find, replacement, [start, [count, [compare]]] )
Right function
The Microsoft Access Right function extracts a substring from a string starting from the right-most character.
Right ( text, number_of_characters )
RTrim function
The Microsoft Access RTrim function removes trailing spaces from a string.
RTrim ( text )
Space function
The Microsoft Access Space function returns a string with a specified number of spaces.
Space ( number )