FNS Flashcards

1
Q

Asc Function

A

The Microsoft Access Asc function returns the NUMBER code that represents the specific character.

Asc ( string )

Asc (“W”)
Result: 87

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Chr Function

A

The Microsoft Access Chr function returns the character based on the NUMBER code.

Chr ( number_code )
Chr (87)
Result: “W”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How to concatenate

A

you can concatenate multiple strings together into a single string with the & operator.

string_1 & string_2 & string_n

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Format Function (with Strings)

A

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’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

InStr Function

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

InstrRev function

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

LCase function

A

LCase function converts a string to lower-case

LCase ( text )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Left function

A

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”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Len function

A

The Microsoft Access Len function returns the length of the specified string.

Len ( text )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

LTrim function

A

The Microsoft Access LTrim function removes leading spaces from a string.

LTrim ( text )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Mid function

A

he Microsoft Access Mid function extracts a substring from a string (starting at any position).

Mid ( text, start_position, [number_of_characters] )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Replace function

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Right function

A

The Microsoft Access Right function extracts a substring from a string starting from the right-most character.

Right ( text, number_of_characters )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

RTrim function

A

The Microsoft Access RTrim function removes trailing spaces from a string.

RTrim ( text )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Space function

A

The Microsoft Access Space function returns a string with a specified number of spaces.

Space ( number )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Split function

A

The Microsoft Access Split function will split a string into substrings based on a delimiter. The result is returned as an array of substrings.

Split ( expression [,delimiter] [,limit] [,compare] )

17
Q

Str function

A

The Microsoft Access Str function returns a string representation of a number.

Str ( number )

18
Q

StrComp function

A

The Microsoft Access StrComp function returns an integer value representing the result of a string comparison

StrComp ( string1, string2 [, compare ] )

19
Q

StrConv Function

A

The Microsoft Access StrConv function returns a string converted as specified.
StrConv ( text, conversion, LCID )
Parameter Value Description
vbUpperCase 1 Converts the string to all uppercase.
vbLowerCase 2 Converts the string to all lowercase.
vbProperCase 3 Converts the first letter to every word to uppercase. All other characters are left as lowercase. This option is similar to the InitCap function in Oracle.
vbUnicode 64 Converts the string to Unicode.
vbFromUnicode 128 Converts the string from Unicode to the default code page of the system.

20
Q

StrReverse function

A

The Microsoft Access StrReverse function returns a string whose characters are in reverse order.

StrReverse ( text )

21
Q

Trim Function

A

The Microsoft Access Trim function removes leading and trailing spaces from a string.

Trim ( text )

22
Q

UCase function

A

The Microsoft Access UCase function converts a string to all upper-case.

UCase ( text )

23
Q

Format Function (with Numbers)

A

The Microsoft Access Format function takes a numeric expression and returns it as a formatted string.

Format ( expression, [ format ] )

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’