Flash cards
Review the key moves
1/4
Core idea
What is the main idea behind MS Access MonthName() Function?
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?
2Fill blank
Complete the missing token from the example code.
___ MonthName(3);3Order
Put the learning moves in the order that makes the concept easiest to apply.
Return the name of the month based on a number:
Definition and Usage
MS Access MonthName() Function
Example
Return the name of the month based on a number:
SELECT MonthName(3);Definition and Usage
The MonthName() function returns the name of the month based on a number.
Syntax
MonthName(
number
,
abbreviate
)Parameter Values
| Parameter | Description |
|---|---|
| number | Required. A value from 1 to 12, that represent the month |
| abbreviate | Optional. A Boolean value. True = the month name should be abbreviated. False = the month name should not be abbreviated. False is default |
Technical Details
| Works in: | From Access 2000 |
|---|
Example
Return the abbreviated name of the month based on a number:
SELECT WeekdayName(3, true);